mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-01-06 23:07:56 +08:00
31 lines
792 B
JavaScript
31 lines
792 B
JavaScript
import { mailbox } from 'Common/Links';
|
|
import { getFolderInboxName } from 'Common/Cache';
|
|
import { leftPanelDisabled } from 'Common/Globals';
|
|
|
|
import { MessageUserStore } from 'Stores/User/Message';
|
|
import { ThemeStore } from 'Stores/Theme';
|
|
|
|
import { AbstractViewRight } from 'Knoin/AbstractViews';
|
|
|
|
export class PaneSettingsUserView extends AbstractViewRight {
|
|
constructor() {
|
|
super('SettingsPane');
|
|
|
|
this.isMobile = ThemeStore.isMobile;
|
|
this.leftPanelDisabled = leftPanelDisabled;
|
|
}
|
|
|
|
onShow() {
|
|
MessageUserStore.message(null);
|
|
}
|
|
|
|
onBuild(dom) {
|
|
dom.addEventListener('click', () =>
|
|
ThemeStore.isMobile() && !event.target.closestWithin('.toggleLeft', dom) && leftPanelDisabled(true)
|
|
);
|
|
}
|
|
|
|
backToMailBoxClick() {
|
|
rl.route.setHash(mailbox(getFolderInboxName()));
|
|
}
|
|
}
|