mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-02-22 22:04:43 +08:00
Resolve #258
This commit is contained in:
parent
fe0f6af9f4
commit
90d835059a
1 changed files with 1 additions and 3 deletions
|
@ -268,7 +268,6 @@ export class SieveScriptModel extends AbstractModel
|
|||
|
||||
exists: false,
|
||||
nameError: false,
|
||||
bodyError: false,
|
||||
askDelete: false,
|
||||
canBeDeleted: true,
|
||||
hasChanges: false
|
||||
|
@ -296,8 +295,7 @@ export class SieveScriptModel extends AbstractModel
|
|||
|
||||
verify() {
|
||||
this.nameError(!this.name().trim());
|
||||
this.bodyError(this.allowFilters() ? !this.filters.length : !this.body().trim());
|
||||
return !this.nameError() && !this.bodyError();
|
||||
return !this.nameError();
|
||||
}
|
||||
|
||||
toJson() {
|
||||
|
|
Loading…
Reference in a new issue