mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-01-09 00:08:18 +08:00
6a454ec624
Removed unused ContactUserStore.exportingCsv and ContactUserStore.exportingVcf
42 lines
939 B
JavaScript
42 lines
939 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('User/Settings/Pane', 'SettingsPane');
|
|
|
|
this.leftPanelDisabled = leftPanelDisabled;
|
|
}
|
|
|
|
onShow() {
|
|
MessageUserStore.message(null);
|
|
}
|
|
|
|
hideLeft(item, event) {
|
|
event.preventDefault();
|
|
event.stopPropagation();
|
|
|
|
leftPanelDisabled(true);
|
|
}
|
|
|
|
showLeft(item, event) {
|
|
event.preventDefault();
|
|
event.stopPropagation();
|
|
|
|
leftPanelDisabled(false);
|
|
}
|
|
|
|
onBuild(dom) {
|
|
dom.addEventListener('click', () => ThemeStore.isMobile() && leftPanelDisabled(true));
|
|
}
|
|
|
|
backToMailBoxClick() {
|
|
rl.route.setHash(mailbox(getFolderInboxName()));
|
|
}
|
|
}
|