Cleanup views system

This commit is contained in:
the-djmaze 2022-03-08 12:28:16 +01:00
parent c0f494c758
commit 3e494f6519
12 changed files with 26 additions and 40 deletions

View file

@ -21,7 +21,7 @@ const SignMeOff = 0,
export class LoginUserView extends AbstractViewLogin {
constructor() {
super('Login');
super();
this.addObservables({
loadingDesc: SettingsGet('LoadingDescription'),

View file

@ -25,7 +25,7 @@ import { setExpandedFolder } from 'Model/FolderCollection';
export class MailFolderList extends AbstractViewLeft {
constructor() {
super('MailFolderList');
super();
this.oContentScrollable = null;

View file

@ -58,7 +58,7 @@ const
export class MailMessageList extends AbstractViewRight {
constructor() {
super('MailMessageList');
super();
this.bPrefetch = false;
this.emptySubjectValue = '';

View file

@ -62,7 +62,7 @@ const
export class MailMessageView extends AbstractViewRight {
constructor() {
super('MailMessageView');
super();
const
/**

View file

@ -3,12 +3,12 @@ import { getFolderInboxName } from 'Common/Cache';
import { AbstractViewLeft } from 'Knoin/AbstractViews';
export class MenuSettingsUserView extends AbstractViewLeft {
export class SettingsMenuUserView extends AbstractViewLeft {
/**
* @param {Object} screen
*/
constructor(screen) {
super('SettingsMenu');
super();
this.menu = screen.menu;
}

View file

@ -7,9 +7,9 @@ import { ThemeStore } from 'Stores/Theme';
import { AbstractViewRight } from 'Knoin/AbstractViews';
export class PaneSettingsUserView extends AbstractViewRight {
export class SettingsPaneUserView extends AbstractViewRight {
constructor() {
super('SettingsPane');
super();
this.isMobile = ThemeStore.isMobile;
this.leftPanelDisabled = leftPanelDisabled;

View file

@ -24,7 +24,7 @@ import { getNotification } from 'Common/Translator';
export class SystemDropDownUserView extends AbstractViewRight {
constructor() {
super('SystemDropDown');
super();
this.allowAccounts = SettingsCapa('AdditionalAccounts');