mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 04:29:21 +03:00
Move setupSettings() in constructor
This commit is contained in:
parent
c9fe7516c4
commit
2dfa0b5f0e
3 changed files with 4 additions and 18 deletions
|
|
@ -26,17 +26,6 @@ export class SettingsUserScreen extends AbstractSettingsScreen {
|
|||
constructor() {
|
||||
super([SystemDropDownSettingsUserView, MenuSettingsUserView, PaneSettingsUserView]);
|
||||
|
||||
initOnStartOrLangChange(
|
||||
() => this.sSettingsTitle = i18n('TITLES/SETTINGS'),
|
||||
() => this.setSettingsTitle()
|
||||
);
|
||||
}
|
||||
|
||||
setupSettings() {
|
||||
if (!Settings.capa(Capa.Settings)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
settingsAddViewModel(GeneralUserSettings, 'SettingsGeneral', 'SETTINGS_LABELS/LABEL_GENERAL_NAME', 'general', true);
|
||||
|
||||
if (AppUserStore.allowContacts()) {
|
||||
|
|
@ -74,7 +63,10 @@ export class SettingsUserScreen extends AbstractSettingsScreen {
|
|||
|
||||
runSettingsViewModelHooks(false);
|
||||
|
||||
return true;
|
||||
initOnStartOrLangChange(
|
||||
() => this.sSettingsTitle = i18n('TITLES/SETTINGS'),
|
||||
() => this.setSettingsTitle()
|
||||
);
|
||||
}
|
||||
|
||||
onShow() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue