mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Add cmd interface
Code refactoring
This commit is contained in:
parent
e6e1a19477
commit
962391e2a0
23 changed files with 180 additions and 223 deletions
|
|
@ -31,19 +31,7 @@ class FolderUserStore
|
|||
|
||||
this.foldersInboxUnreadCount = ko.observable(0);
|
||||
|
||||
this.currentFolder = ko.observable(null).extend({toggleSubscribe: [
|
||||
null,
|
||||
(prev) => {
|
||||
if (prev) {
|
||||
prev.selected(false);
|
||||
}
|
||||
},
|
||||
(next) => {
|
||||
if (next) {
|
||||
next.selected(true);
|
||||
}
|
||||
}
|
||||
]});
|
||||
this.currentFolder = ko.observable(null).extend({toggleSubscribeProperty: [this, 'selected']});
|
||||
|
||||
this.computers();
|
||||
this.subscribers();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue