Move reload/restart/shutdown into an Acties menu in the top bar
The actions are now on every page in the same place instead of a button row that differed per page. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
7e07428a81
commit
efc581e0ae
8 files changed
+51
-21
No files matched your search
@@ -298,3 +298,10 @@ def test_admin_port_change_restarts_manager(logged_in, fake_helper, paths):
|
||||
assert resp.status_code == 200 and ":8443/" in resp.get_data(as_text=True)
|
||||
assert fake_helper.calls[-1][0] == "restart-manager"
|
||||
assert load_config(paths.config_file)["admin_port"] == 8443
|
||||
|
||||
|
||||
@pytest.mark.parametrize("path", ["/", "/kiosk", "/system", "/network", "/logs", "/account/password"])
|
||||
def test_actions_menu_on_every_page(logged_in, path):
|
||||
html = logged_in.get(path).get_data(as_text=True)
|
||||
for action in ("/kiosk/reload", "/kiosk/restart", "/system/reboot", "/system/poweroff"):
|
||||
assert f'action="{action}"' in html
|
||||
Reference in new issue
Block a user