Interface optimazations

This commit is contained in:
RainLoop Team 2014-04-06 14:41:32 +04:00
parent e20bdc9ff9
commit 4283395624
5 changed files with 31 additions and 11 deletions

View file

@ -122,6 +122,16 @@ function MailBoxMessageListViewModel()
'' !== oData.trashFolder();
}, this);
this.isDraftFolder = ko.computed(function () {
return oData.draftFolder() === this.messageListEndFolder() &&
'' !== oData.draftFolder();
}, this);
this.isSentFolder = ko.computed(function () {
return oData.sentFolder() === this.messageListEndFolder() &&
'' !== oData.sentFolder();
}, this);
this.isArchiveFolder = ko.computed(function () {
return oData.archiveFolder() === this.messageListEndFolder() &&
'' !== oData.archiveFolder();