mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-29 12:09: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 } from 'Common/Enums';
|
||||
import { doc, createElement, Settings } from 'Common/Globals';
|
||||
import { pString, pInt } from 'Common/Utils';
|
||||
import { moveAction } from 'Common/UtilsUser';
|
||||
|
|
@ -57,7 +57,7 @@ export class MailBoxUserScreen extends AbstractScreen {
|
|||
onShow() {
|
||||
this.updateWindowTitle();
|
||||
AppUserStore.focusedState('none');
|
||||
AppUserStore.focusedState(Scope.MessageList);
|
||||
AppUserStore.focusedState(ScopeMessageList);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { Scope } from 'Common/Enums';
|
||||
import { ScopeSettings } from 'Common/Enums';
|
||||
import { keyScope, SettingsCapa } from 'Common/Globals';
|
||||
import { runSettingsViewModelHooks } from 'Common/Plugins';
|
||||
import { initOnStartOrLangChange, i18n } from 'Common/Translator';
|
||||
|
|
@ -65,7 +65,7 @@ export class SettingsUserScreen extends AbstractSettingsScreen {
|
|||
|
||||
onShow() {
|
||||
this.setSettingsTitle();
|
||||
keyScope(Scope.Settings);
|
||||
keyScope(ScopeSettings);
|
||||
}
|
||||
|
||||
setSettingsTitle() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue