mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 12:39:20 +03:00
Reduce AppData result for unauthorized visitor
This commit is contained in:
parent
a51f86ae28
commit
74f830486e
4 changed files with 115 additions and 134 deletions
|
|
@ -1,6 +1,7 @@
|
|||
import 'External/ko';
|
||||
|
||||
import { Settings, SettingsGet } from 'Common/Globals';
|
||||
import { ThemeStore } from 'Stores/Theme';
|
||||
|
||||
import Remote from 'Remote/Admin/Fetch';
|
||||
|
||||
|
|
@ -17,6 +18,7 @@ export class AdminApp extends AbstractApp {
|
|||
}
|
||||
|
||||
refresh() {
|
||||
ThemeStore.populate();
|
||||
this.start();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -94,13 +94,6 @@ export class AppUser extends AbstractApp {
|
|||
this.folderList = FolderUserStore.folderList;
|
||||
}
|
||||
|
||||
refresh() {
|
||||
LanguageStore.language(SettingsGet('Language'));
|
||||
ThemeStore.populate();
|
||||
changeTheme(SettingsGet('Theme'));
|
||||
this.start();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {number} iFolderType
|
||||
* @param {string} sFromFolderFullName
|
||||
|
|
@ -230,6 +223,13 @@ export class AppUser extends AbstractApp {
|
|||
}, {capture: true});
|
||||
}
|
||||
|
||||
refresh() {
|
||||
ThemeStore.populate();
|
||||
LanguageStore.language(SettingsGet('Language'));
|
||||
changeTheme(SettingsGet('Theme'));
|
||||
this.start();
|
||||
}
|
||||
|
||||
start() {
|
||||
if (SettingsGet('Auth')) {
|
||||
rl.setWindowTitle(i18n('GLOBAL/LOADING'));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue