Development
This commit is contained in:
parent
6ad78e9ed7
commit
ffbdce3436
2 changed files with 7 additions and 3 deletions
|
|
@ -1528,7 +1528,7 @@ def build_item(item, tokens, inherited_req=None):
|
|||
|
||||
# Layout renderer =====================================================
|
||||
|
||||
def render_layout(view_id, content_html, tokens, page_name=None):
|
||||
def render_layout(view_id, content_html, tokens, page_name=None, suppress_pending_bar=False):
|
||||
level = client_level()
|
||||
has_pending_alert = not config_utils._apply_changes_immediately() and bool(config_utils.get_dashboard_pending())
|
||||
titlebar_html = f'<div class="titlebar"><span class="titlebar-brand">{config_utils.WEB_APP_DISPLAY_NAME}</span></div>'
|
||||
|
|
@ -1645,7 +1645,7 @@ def render_layout(view_id, content_html, tokens, page_name=None):
|
|||
pass
|
||||
|
||||
pending_bar = ''
|
||||
if has_pending_alert and not problem_bars and view_id != 'actions':
|
||||
if has_pending_alert and not problem_bars and view_id != 'actions' and not suppress_pending_bar:
|
||||
pending_bar = (
|
||||
'<div class="info-bar info-bar-warning">'
|
||||
'<span>You have actions pending. Please visit the <strong>Actions</strong> page.</span>'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue