mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 12:39:20 +03:00
Bugfix: filters toggle failed because it was no observable
This commit is contained in:
parent
c7d6426c88
commit
d4d6d73306
2 changed files with 3 additions and 1 deletions
|
|
@ -24,6 +24,7 @@ class SieveScriptPopupView extends AbstractViewNext {
|
|||
saveError: false,
|
||||
saveErrorText: '',
|
||||
rawActive: false,
|
||||
allowToggle: false,
|
||||
script: null
|
||||
});
|
||||
|
||||
|
|
@ -130,6 +131,7 @@ class SieveScriptPopupView extends AbstractViewNext {
|
|||
onShow(oScript) {
|
||||
this.script(oScript);
|
||||
this.rawActive(!oScript.allowFilters());
|
||||
this.allowToggle(oScript.allowFilters());
|
||||
this.saveError(false);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -98,7 +98,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<a class="btn" data-bind="visible: allowFilters, click: function() { $root.toggleFiltersRaw(); },
|
||||
<a class="btn" data-bind="visible: $root.allowToggle, click: function() { $root.toggleFiltersRaw(); },
|
||||
css: {'active': $root.rawActive }, tooltip: 'POPUPS_SIEVE_SCRIPT/BUTTON_RAW_SCRIPT'">
|
||||
<i class="icon-file-code"></i>
|
||||
</a>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue