mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-03 14:37:02 +03:00
Drop Capa enums
This commit is contained in:
parent
f44507a69b
commit
874f2592ca
14 changed files with 42 additions and 64 deletions
|
|
@ -1,4 +1,3 @@
|
|||
import { Scope } from 'Common/Enums';
|
||||
import { keyScope, leftPanelDisabled, SettingsGet, elementById } from 'Common/Globals';
|
||||
import { addObservablesTo } from 'External/ko';
|
||||
import { ThemeStore } from 'Stores/Theme';
|
||||
|
|
@ -8,7 +7,7 @@ export const AppUserStore = {
|
|||
};
|
||||
|
||||
addObservablesTo(AppUserStore, {
|
||||
focusedState: Scope.None,
|
||||
focusedState: 'none',
|
||||
|
||||
threadsAllowed: false,
|
||||
|
||||
|
|
@ -19,7 +18,7 @@ AppUserStore.focusedState.subscribe(value => {
|
|||
['FolderList','MessageList','MessageView'].forEach(name => {
|
||||
if (name === value) {
|
||||
keyScope(value);
|
||||
ThemeStore.isMobile() && leftPanelDisabled(Scope.FolderList !== value);
|
||||
ThemeStore.isMobile() && leftPanelDisabled('FolderList' !== value);
|
||||
}
|
||||
let dom = elementById('V-Mail'+name);
|
||||
dom && dom.classList.toggle('focused', name === value);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue