mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-11-14 19:54:43 +08:00
23 lines
469 B
JavaScript
23 lines
469 B
JavaScript
import { settings } from 'Common/Links';
|
|
import { 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);
|
|
}
|
|
|
|
backToInbox() {
|
|
hasher.setHash(mailbox(getFolderInboxName()));
|
|
}
|
|
}
|