snappymail/dev/View/User/Settings/Menu.js
2022-03-08 12:28:16 +01:00

23 lines
446 B
JavaScript

import { settings, mailbox } from 'Common/Links';
import { getFolderInboxName } from 'Common/Cache';
import { AbstractViewLeft } from 'Knoin/AbstractViews';
export class SettingsMenuUserView extends AbstractViewLeft {
/**
* @param {Object} screen
*/
constructor(screen) {
super();
this.menu = screen.menu;
}
link(route) {
return settings(route);
}
backToMailBoxClick() {
hasher.setHash(mailbox(getFolderInboxName()));
}
}