mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-28 03:29:20 +03:00
Cleanup array.length checks and for() to forEach()
This commit is contained in:
parent
db5751cd00
commit
82bed1ed80
24 changed files with 135 additions and 169 deletions
|
|
@ -137,7 +137,7 @@ class FolderModel extends AbstractModel {
|
|||
|
||||
this.canBeDeleted = ko.computed(() => {
|
||||
const bSystem = this.isSystemFolder();
|
||||
return !bSystem && 0 === this.subFolders().length && inboxFolderName !== this.fullNameRaw;
|
||||
return !bSystem && !this.subFolders().length && inboxFolderName !== this.fullNameRaw;
|
||||
});
|
||||
|
||||
this.canBeSubScribed = ko.computed(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue