mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-01-06 23:07:56 +08:00
Cleanup Sieve Filter edit, no need to reassign filters on save
This commit is contained in:
parent
cf71c1a18f
commit
6c4950615d
1 changed files with 1 additions and 9 deletions
|
@ -110,15 +110,7 @@ export class SieveScriptPopupView extends rl.pluginPopupView {
|
||||||
const clonedFilter = filter.assignTo();
|
const clonedFilter = filter.assignTo();
|
||||||
FilterPopupView.showModal([
|
FilterPopupView.showModal([
|
||||||
clonedFilter,
|
clonedFilter,
|
||||||
() => {
|
() => clonedFilter.assignTo(filter),
|
||||||
const script = this.script(),
|
|
||||||
filters = script.filters(),
|
|
||||||
index = filters.indexOf(filter);
|
|
||||||
if (-1 < index) {
|
|
||||||
clonedFilter.assignTo(filter);
|
|
||||||
script.filters(filters);
|
|
||||||
}
|
|
||||||
},
|
|
||||||
true
|
true
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue