mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-10 06:58:27 +03:00
Resolve #464
This commit is contained in:
parent
a5caae8991
commit
cf71c1a18f
3 changed files with 6 additions and 7 deletions
|
|
@ -102,12 +102,12 @@ export class SieveScriptPopupView extends rl.pluginPopupView {
|
|||
filter.generateID();
|
||||
FilterPopupView.showModal([
|
||||
filter,
|
||||
() => this.filters.push(filter)
|
||||
() => this.filters.push(filter.assignTo())
|
||||
]);
|
||||
}
|
||||
|
||||
editFilter(filter) {
|
||||
const clonedFilter = filter.cloneSelf();
|
||||
const clonedFilter = filter.assignTo();
|
||||
FilterPopupView.showModal([
|
||||
clonedFilter,
|
||||
() => {
|
||||
|
|
@ -115,8 +115,7 @@ export class SieveScriptPopupView extends rl.pluginPopupView {
|
|||
filters = script.filters(),
|
||||
index = filters.indexOf(filter);
|
||||
if (-1 < index) {
|
||||
// script.filters.splice(index, 1, clonedFilter);
|
||||
filters[index] = clonedFilter;
|
||||
clonedFilter.assignTo(filter);
|
||||
script.filters(filters);
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue