mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-29 20:19:22 +03:00
Disable removal of rainloop.user script
This commit is contained in:
parent
ee37ad67bb
commit
76bc8aa107
3 changed files with 9 additions and 7 deletions
|
|
@ -21,7 +21,6 @@ class SieveScriptPopupView extends AbstractViewNext {
|
|||
super();
|
||||
|
||||
ko.addObservablesTo(this, {
|
||||
isNew: true,
|
||||
saveError: false,
|
||||
saveErrorText: '',
|
||||
rawActive: false,
|
||||
|
|
@ -42,7 +41,7 @@ class SieveScriptPopupView extends AbstractViewNext {
|
|||
return false;
|
||||
}
|
||||
|
||||
if (this.isNew() && SieveStore.scripts.find(item => item.name() === script.name())) {
|
||||
if (!script.exists() && SieveStore.scripts.find(item => item.name() === script.name())) {
|
||||
script.nameError(true);
|
||||
return false;
|
||||
}
|
||||
|
|
@ -55,6 +54,7 @@ class SieveScriptPopupView extends AbstractViewNext {
|
|||
this.saving = false;
|
||||
|
||||
if (StorageResultType.Success === result && data && data.Result) {
|
||||
script.exists(true);
|
||||
script.hasChanges(false);
|
||||
SieveStore.scripts.push(script);
|
||||
} else {
|
||||
|
|
@ -119,7 +119,6 @@ class SieveScriptPopupView extends AbstractViewNext {
|
|||
onShow(oScript) {
|
||||
this.script(oScript);
|
||||
this.rawActive(!oScript.allowFilters());
|
||||
this.isNew(!oScript.name());
|
||||
this.saveError(false);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue