Add SPAM button on mobile view (#1073)

This commit is contained in:
RainLoop Team 2016-06-17 23:11:52 +03:00
parent 78fa5b69fb
commit eaf60c3c99
6 changed files with 23 additions and 15 deletions

View file

@ -204,6 +204,16 @@
return this.isSpamFolder() && !this.isSpamDisabled() && !this.isDraftFolder() && !this.isSentFolder();
}, this);
this.mobileCheckedStateShow = ko.computed(function () {
var checked = 0 < this.messageListChecked().length;
return this.mobile ? checked : true;
}, this);
this.mobileCheckedStateHide = ko.computed(function () {
var checked = 0 < this.messageListChecked().length;
return this.mobile ? !checked : true;
}, this);
this.messageListFocused = ko.computed(function () {
return Enums.Focused.MessageList === AppStore.focusedState();
});