2022-05-01 03:26:34 +08:00
|
|
|
import { settings } from 'Common/Links';
|
2023-02-23 20:54:32 +08:00
|
|
|
import { mailbox } from 'Common/Links';
|
|
|
|
import { getFolderInboxName } from 'Common/Cache';
|
2021-01-24 17:25:23 +08:00
|
|
|
import { AbstractViewLeft } from 'Knoin/AbstractViews';
|
|
|
|
|
2022-03-08 19:28:16 +08:00
|
|
|
export class SettingsMenuUserView extends AbstractViewLeft {
|
2016-08-17 06:01:20 +08:00
|
|
|
/**
|
|
|
|
* @param {Object} screen
|
|
|
|
*/
|
|
|
|
constructor(screen) {
|
2022-03-08 19:28:16 +08:00
|
|
|
super();
|
2014-10-18 05:02:19 +08:00
|
|
|
|
2016-08-17 06:01:20 +08:00
|
|
|
this.menu = screen.menu;
|
|
|
|
}
|
2014-09-06 05:44:29 +08:00
|
|
|
|
2016-09-03 07:19:37 +08:00
|
|
|
link(route) {
|
|
|
|
return settings(route);
|
2016-08-17 06:01:20 +08:00
|
|
|
}
|
2023-02-23 20:54:32 +08:00
|
|
|
|
|
|
|
backToInbox() {
|
|
|
|
hasher.setHash(mailbox(getFolderInboxName()));
|
|
|
|
}
|
2016-08-17 06:01:20 +08:00
|
|
|
}
|