mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-04 15:07:02 +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
|
|
@ -33,7 +33,7 @@ class SettingsUserStore
|
|||
this.useThreads = ko.observable(false);
|
||||
this.replySameFolder = ko.observable(false);
|
||||
|
||||
this.autoLogout = ko.observable(30);
|
||||
this.autoLogout = ko.observable(Magics.Time30mInMin);
|
||||
|
||||
this.computers();
|
||||
this.subscribers();
|
||||
|
|
@ -44,11 +44,11 @@ class SettingsUserStore
|
|||
}
|
||||
|
||||
subscribers() {
|
||||
this.layout.subscribe((nValue) => {
|
||||
$html.toggleClass('rl-no-preview-pane', Layout.NoPreview === nValue);
|
||||
$html.toggleClass('rl-side-preview-pane', Layout.SidePreview === nValue);
|
||||
$html.toggleClass('rl-bottom-preview-pane', Layout.BottomPreview === nValue);
|
||||
Events.pub('layout', [nValue]);
|
||||
this.layout.subscribe((value) => {
|
||||
$html.toggleClass('rl-no-preview-pane', Layout.NoPreview === value);
|
||||
$html.toggleClass('rl-side-preview-pane', Layout.SidePreview === value);
|
||||
$html.toggleClass('rl-bottom-preview-pane', Layout.BottomPreview === value);
|
||||
Events.pub('layout', [value]);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue