Add cmd interface

Code refactoring
This commit is contained in:
RainLoop Team 2016-08-24 01:17:50 +03:00
parent e6e1a19477
commit 962391e2a0
23 changed files with 180 additions and 223 deletions

View file

@ -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();