Merge SystemDropDownMailBoxUserView & SystemDropDownSettingsUserView into SystemDropDownUserView

This commit is contained in:
djmaze 2021-09-23 10:40:10 +02:00
parent 1c23ccd327
commit 8010229d6b
5 changed files with 5 additions and 19 deletions

View file

@ -10,7 +10,7 @@ import { FolderUserStore } from 'Stores/User/Folder';
import { MessageUserStore } from 'Stores/User/Message';
import { ThemeStore } from 'Stores/Theme';
import { SystemDropDownMailBoxUserView } from 'View/User/MailBox/SystemDropDown';
import { SystemDropDownUserView } from 'View/User/SystemDropDown';
import { MailFolderList } from 'View/User/MailBox/FolderList';
import { MailMessageList } from 'View/User/MailBox/MessageList';
import { MailMessageView } from 'View/User/MailBox/MessageView';
@ -20,7 +20,7 @@ import { AbstractScreen } from 'Knoin/AbstractScreen';
export class MailBoxUserScreen extends AbstractScreen {
constructor() {
super('mailbox', [
SystemDropDownMailBoxUserView,
SystemDropDownUserView,
MailFolderList,
MailMessageList,
MailMessageView

View file

@ -18,13 +18,13 @@ import { FoldersUserSettings } from 'Settings/User/Folders';
import { ThemesUserSettings } from 'Settings/User/Themes';
import { OpenPgpUserSettings } from 'Settings/User/OpenPgp';
import { SystemDropDownSettingsUserView } from 'View/User/Settings/SystemDropDown';
import { SystemDropDownUserView } from 'View/User/SystemDropDown';
import { MenuSettingsUserView } from 'View/User/Settings/Menu';
import { PaneSettingsUserView } from 'View/User/Settings/Pane';
export class SettingsUserScreen extends AbstractSettingsScreen {
constructor() {
super([SystemDropDownSettingsUserView, MenuSettingsUserView, PaneSettingsUserView]);
super([SystemDropDownUserView, MenuSettingsUserView, PaneSettingsUserView]);
settingsAddViewModel(GeneralUserSettings, 'SettingsGeneral', 'SETTINGS_LABELS/LABEL_GENERAL_NAME', 'general', true);

View file

@ -1,7 +0,0 @@
import { AbstractSystemDropDownUserView } from 'View/User/AbstractSystemDropDown';
class SystemDropDownMailBoxUserView extends AbstractSystemDropDownUserView
{
}
export { SystemDropDownMailBoxUserView };

View file

@ -1,7 +0,0 @@
import { AbstractSystemDropDownUserView } from 'View/User/AbstractSystemDropDown';
class SystemDropDownSettingsUserView extends AbstractSystemDropDownUserView
{
}
export { SystemDropDownSettingsUserView };

View file

@ -16,7 +16,7 @@ import { doc, Settings, leftPanelDisabled } from 'Common/Globals';
import { ThemeStore } from 'Stores/Theme';
export class AbstractSystemDropDownUserView extends AbstractViewRight {
export class SystemDropDownUserView extends AbstractViewRight {
constructor() {
super('SystemDropDown');