mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-06 07:57:02 +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,
|
saveError: false,
|
||||||
saveErrorText: '',
|
saveErrorText: '',
|
||||||
rawActive: false,
|
rawActive: false,
|
||||||
|
allowToggle: false,
|
||||||
script: null
|
script: null
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
@ -130,6 +131,7 @@ class SieveScriptPopupView extends AbstractViewNext {
|
||||||
onShow(oScript) {
|
onShow(oScript) {
|
||||||
this.script(oScript);
|
this.script(oScript);
|
||||||
this.rawActive(!oScript.allowFilters());
|
this.rawActive(!oScript.allowFilters());
|
||||||
|
this.allowToggle(oScript.allowFilters());
|
||||||
this.saveError(false);
|
this.saveError(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -98,7 +98,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<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'">
|
css: {'active': $root.rawActive }, tooltip: 'POPUPS_SIEVE_SCRIPT/BUTTON_RAW_SCRIPT'">
|
||||||
<i class="icon-file-code"></i>
|
<i class="icon-file-code"></i>
|
||||||
</a>
|
</a>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue