mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 12:39:20 +03:00
Enable add/delete of Sieve scripts
This commit is contained in:
parent
1a07109d80
commit
ee37ad67bb
12 changed files with 24 additions and 22 deletions
|
|
@ -67,26 +67,11 @@ class FiltersUserSettings {
|
|||
}
|
||||
|
||||
addScript() {
|
||||
const script = new SieveScriptModel();
|
||||
showScreenPopup(require('View/Popup/SieveScript'), [
|
||||
script,
|
||||
() => {
|
||||
if (!this.scripts[script.name]) {
|
||||
this.scripts[script.name] = script.name;
|
||||
}
|
||||
},
|
||||
false
|
||||
]);
|
||||
showScreenPopup(require('View/Popup/SieveScript'), [new SieveScriptModel()]);
|
||||
}
|
||||
|
||||
editScript(script) {
|
||||
showScreenPopup(require('View/Popup/SieveScript'), [
|
||||
script,
|
||||
() => {
|
||||
// TODO on save
|
||||
},
|
||||
true
|
||||
]);
|
||||
showScreenPopup(require('View/Popup/SieveScript'), [script]);
|
||||
}
|
||||
|
||||
deleteScript(script) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue