feat(editor): add button for save on closing

This commit is contained in:
thelastWallE 2021-10-19 10:22:40 +02:00
parent bf7ebbd261
commit 794b016bc3
1 changed files with 4 additions and 1 deletions

View File

@ -34,8 +34,11 @@
<button class="btn btn-small" data-bind="click: checkSyntax" title="{{ _('Check Syntax') }}"> <button class="btn btn-small" data-bind="click: checkSyntax" title="{{ _('Check Syntax') }}">
<i class="fas fa-spell-check"></i> {{ _('Check Syntax') }} <i class="fas fa-spell-check"></i> {{ _('Check Syntax') }}
</button> </button>
<button class="btn btn-small" data-bind="click: function() { $root.saveCfg({closing: true}) }" title="{{ _('Save Config and Close') }}">
<i class="fas fa-save"></i> {{ _('Save & Close') }}
</button>
<button class="btn btn-small" data-bind="click: saveCfg" title="{{ _('Save Config') }}"> <button class="btn btn-small" data-bind="click: saveCfg" title="{{ _('Save Config') }}">
<i class="fas fa-save"></i> {{ _('Save Config') }} <i class="fas fa-save"></i> {{ _('Save') }}
</button> </button>
</div> </div>
</div> </div>