Development
This commit is contained in:
parent
6eddd657e2
commit
95a6961855
2 changed files with 10 additions and 5 deletions
|
|
@ -671,6 +671,12 @@ def collect_tokens():
|
|||
|
||||
tokens['PENDING_ACTIONS_HTML'] = pending_html
|
||||
tokens['NO_PENDING'] = 'true' if not pending_items else ''
|
||||
tokens['APPLY_WARNING'] = (
|
||||
'<span class="btn-notice btn-notice-warning">'
|
||||
'Applying actions will temporarily disrupt connections as network services are restarted.'
|
||||
'</span>'
|
||||
if pending_items else ''
|
||||
)
|
||||
done_ts_map = get_done_timestamps()
|
||||
if all_snaps:
|
||||
# UUIDs that cannot be reverted: revert entries themselves, and entries
|
||||
|
|
|
|||
|
|
@ -601,11 +601,6 @@
|
|||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "info_bar",
|
||||
"variant": "info",
|
||||
"text": "Notice: Applying actions will temporarily disrupt connections as network services are restarted."
|
||||
},
|
||||
{
|
||||
"type": "card",
|
||||
"label": "Pending Actions",
|
||||
|
|
@ -627,6 +622,10 @@
|
|||
"type": "button_primary",
|
||||
"text": "Apply Now",
|
||||
"disabled": "%NO_PENDING%"
|
||||
},
|
||||
{
|
||||
"type": "raw_html",
|
||||
"html": "%APPLY_WARNING%"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue