Development
This commit is contained in:
parent
a78df48804
commit
fc78e20f0e
4 changed files with 33 additions and 31 deletions
|
|
@ -109,7 +109,7 @@ def _trim_if_needed():
|
|||
pass
|
||||
|
||||
|
||||
def _apply_on_save():
|
||||
def _apply_changes_immediately():
|
||||
try:
|
||||
return session.get('apply_changes_immediately', False)
|
||||
except Exception:
|
||||
|
|
@ -178,7 +178,7 @@ def _queue_pending_command(cmd, description=''):
|
|||
|
||||
|
||||
def _queue_command(cmd, description=''):
|
||||
if not _apply_on_save():
|
||||
if not _apply_changes_immediately():
|
||||
return _queue_pending_command(cmd, description)
|
||||
done_set = _load_done_set()
|
||||
pending = _read_pending(done_set)
|
||||
|
|
@ -243,7 +243,7 @@ def queued_msg(cmd=None, description='', action_label='Configuration saved'):
|
|||
entry_ts = None
|
||||
if cmd is not None:
|
||||
_entry_uuid, entry_ts = queue_command(cmd, description)
|
||||
if not _apply_on_save():
|
||||
if not _apply_changes_immediately():
|
||||
return f'{action_label}. Click Apply Now on the Configuration Changes card to apply.'
|
||||
if _is_locked():
|
||||
mtime = _lock_mtime()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue