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

@ -323,8 +323,7 @@ export const SaveSettingsStep = {
export const Layout = {
'NoPreview': 0,
'SidePreview': 1,
'BottomPreview': 2,
'Mobile': 3
'BottomPreview': 2
};
/**

View file

@ -62,7 +62,6 @@
Globals.$html.toggleClass('rl-no-preview-pane', Enums.Layout.NoPreview === nValue);
Globals.$html.toggleClass('rl-side-preview-pane', Enums.Layout.SidePreview === nValue);
Globals.$html.toggleClass('rl-bottom-preview-pane', Enums.Layout.BottomPreview === nValue);
Globals.$html.toggleClass('rl-mobile-layout', Enums.Layout.Mobile === nValue);
Events.pub('layout', [nValue]);
});

View file

@ -616,7 +616,7 @@ html.ssm-state-desktop-large {
}
}
html.cssanimations.rl-anim .messageList .line-loading {
html.cssanimations .messageList .line-loading {
height: 5px !important;
}

View file

@ -581,7 +581,7 @@ html.rl-bottom-preview-pane .messageView {
}
}
html.cssanimations.rl-anim .messageItem .line-loading {
html.cssanimations .messageItem .line-loading {
height: 5px !important;
}

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