mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-31 21:19:21 +03:00
Improved cache handling
This commit is contained in:
parent
29854311f9
commit
cf12960507
12 changed files with 153 additions and 145 deletions
24
dev/sieve.js
24
dev/sieve.js
|
|
@ -55,13 +55,11 @@ window.Sieve = {
|
|||
deleteScript: script => {
|
||||
serverError(false);
|
||||
Remote.request('FiltersScriptDelete',
|
||||
(iError, data) => {
|
||||
if (iError) {
|
||||
setError(data?.ErrorMessageAdditional || getNotification(iError));
|
||||
} else {
|
||||
scripts.remove(script);
|
||||
}
|
||||
},
|
||||
(iError, data) =>
|
||||
iError
|
||||
? setError(data?.ErrorMessageAdditional || getNotification(iError))
|
||||
: scripts.remove(script)
|
||||
,
|
||||
{name:script.name()}
|
||||
);
|
||||
},
|
||||
|
|
@ -69,13 +67,11 @@ window.Sieve = {
|
|||
setActiveScript(name) {
|
||||
serverError(false);
|
||||
Remote.request('FiltersScriptActivate',
|
||||
(iError, data) => {
|
||||
if (iError) {
|
||||
setError(data?.ErrorMessageAdditional || iError)
|
||||
} else {
|
||||
scripts.forEach(script => script.active(script.name() === name));
|
||||
}
|
||||
},
|
||||
(iError, data) =>
|
||||
iError
|
||||
? setError(data?.ErrorMessageAdditional || iError)
|
||||
: scripts.forEach(script => script.active(script.name() === name))
|
||||
,
|
||||
{name:name}
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue