2021-02-12 21:56:16 +08:00
|
|
|
import { settings, mailbox } from 'Common/Links';
|
2019-07-05 03:19:24 +08:00
|
|
|
import { getFolderInboxName } from 'Common/Cache';
|
2016-08-17 06:01:20 +08:00
|
|
|
|
2021-01-24 17:25:23 +08:00
|
|
|
import { AbstractViewLeft } from 'Knoin/AbstractViews';
|
|
|
|
|
2021-02-12 21:56:16 +08:00
|
|
|
export class MenuSettingsUserView extends AbstractViewLeft {
|
2016-08-17 06:01:20 +08:00
|
|
|
/**
|
|
|
|
* @param {Object} screen
|
|
|
|
*/
|
|
|
|
constructor(screen) {
|
2021-09-23 15:41:02 +08:00
|
|
|
super('SettingsMenu');
|
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
|
|
|
}
|
2014-09-06 05:44:29 +08:00
|
|
|
|
2016-08-17 06:01:20 +08:00
|
|
|
backToMailBoxClick() {
|
2021-02-12 21:56:16 +08:00
|
|
|
rl.route.setHash(mailbox(getFolderInboxName()));
|
2016-08-17 06:01:20 +08:00
|
|
|
}
|
|
|
|
}
|