mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-01-10 00:38:04 +08:00
25 lines
628 B
JavaScript
25 lines
628 B
JavaScript
import { leftPanelDisabled, toggleLeftPanel } from 'Common/Globals';
|
|
|
|
import { MessageUserStore } from 'Stores/User/Message';
|
|
import { ThemeStore } from 'Stores/Theme';
|
|
|
|
import { AbstractViewRight } from 'Knoin/AbstractViews';
|
|
|
|
export class SettingsPaneUserView extends AbstractViewRight {
|
|
constructor() {
|
|
super();
|
|
|
|
this.leftPanelDisabled = leftPanelDisabled;
|
|
this.toggleLeftPanel = toggleLeftPanel;
|
|
}
|
|
|
|
onShow() {
|
|
MessageUserStore.message(null);
|
|
}
|
|
|
|
onBuild(dom) {
|
|
dom.addEventListener('click', () =>
|
|
ThemeStore.isMobile() && !event.target.closestWithin('.toggleLeft', dom) && leftPanelDisabled(true)
|
|
);
|
|
}
|
|
}
|