snappymail/dev/View/User/Settings/Menu.js

24 lines
462 B
JavaScript
Raw Normal View History

import { settings, mailbox } from 'Common/Links';
2019-07-05 03:19:24 +08:00
import { getFolderInboxName } from 'Common/Cache';
import { AbstractViewLeft } from 'Knoin/AbstractViews';
export class MenuSettingsUserView extends AbstractViewLeft {
/**
* @param {Object} screen
*/
constructor(screen) {
super('SettingsMenu');
this.menu = screen.menu;
}
link(route) {
return settings(route);
}
backToMailBoxClick() {
rl.route.setHash(mailbox(getFolderInboxName()));
}
}