From 2140ea0e0a1136c5e8743569b504126a5d520479 Mon Sep 17 00:00:00 2001 From: Matthew Grotke Date: Wed, 3 Jun 2026 15:31:39 -0400 Subject: [PATCH] Development --- docker/routlin-dash/app/pages/actions/content.json | 10 +++++++++- docker/routlin-dash/app/pages/actions/view.py | 4 +++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/docker/routlin-dash/app/pages/actions/content.json b/docker/routlin-dash/app/pages/actions/content.json index e03fdaa..95e6fe5 100644 --- a/docker/routlin-dash/app/pages/actions/content.json +++ b/docker/routlin-dash/app/pages/actions/content.json @@ -108,11 +108,19 @@ "type": "button_row", "justify": "space-between", "items": [ + { + "type": "raw_html", + "html": "" + }, { "type": "button_secondary", - "text": "Revert Selected", + "text": "Revert", "disabled": "%NO_HISTORY%" }, + { + "type": "raw_html", + "html": "" + }, { "type": "button_danger", "text": "Clear Selected History", diff --git a/docker/routlin-dash/app/pages/actions/view.py b/docker/routlin-dash/app/pages/actions/view.py index edbb09c..0275a9b 100644 --- a/docker/routlin-dash/app/pages/actions/view.py +++ b/docker/routlin-dash/app/pages/actions/view.py @@ -65,6 +65,8 @@ def collect_tokens(cfg): done_ts_map = get_done_timestamps() if all_groups: + level = client_level() + is_manager = LEVEL_RANK.get(level, 0) >= LEVEL_RANK.get('manager', 0) no_revert = set() for g, _ in all_groups: if g['reverts_group']: @@ -99,7 +101,7 @@ def collect_tokens(cfg): '' ) snap_user = e(g.get('user', '')) - cb_attrs = 'disabled title="Cannot revert"' if uuid in no_revert else '' + cb_attrs = '' if is_manager else ('disabled title="Cannot revert"' if uuid in no_revert else '') hist_rows += ( f'' f''