mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 20:49:20 +03:00
Cleanup some enums to consts
This commit is contained in:
parent
91e60c1007
commit
da2ab68fcc
13 changed files with 103 additions and 126 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import { Scope } from 'Common/Enums';
|
||||
import { ScopeMessageList, ScopeMessageView } from 'Common/Enums';
|
||||
import { elementById } from 'Common/Globals';
|
||||
import { exitFullscreen } from 'Common/Fullscreen';
|
||||
import { addObservablesTo, addSubscribablesTo } from 'External/ko';
|
||||
|
|
@ -25,9 +25,9 @@ export const MessageUserStore = new class {
|
|||
clearTimeout(this.MessageSeenTimer);
|
||||
elementById('rl-right').classList.toggle('message-selected', !!message);
|
||||
if (message) {
|
||||
SettingsUserStore.usePreviewPane() || AppUserStore.focusedState(Scope.MessageView);
|
||||
SettingsUserStore.usePreviewPane() || AppUserStore.focusedState(ScopeMessageView);
|
||||
} else {
|
||||
AppUserStore.focusedState(Scope.MessageList);
|
||||
AppUserStore.focusedState(ScopeMessageList);
|
||||
exitFullscreen();
|
||||
}
|
||||
[...(this.bodiesDom()?.children || [])].forEach(el => el.hidden = true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue