hedera-web/forms/admin/connections/index.js

34 lines
561 B
JavaScript
Raw Normal View History

2022-11-16 01:43:11 +00:00
import './style.scss';
export default new Class({
Extends: Hedera.Form,
Template: require('./ui.xml')
,_timeoutId: null
,onModelStatusChange() {
if (!this.$.sessions.ready)
return;
if (this._timeoutId)
clearTimeout(this._timeoutId);
this._timeoutId = setTimeout(
() => this.$.sessions.refresh(), 60000);
}
,deactivate() {
clearTimeout(this._timeoutId);
}
2022-11-28 08:51:31 +00:00
,async onChangeUserClick(userName) {
await this.gui.supplantUser(userName);
2022-11-16 01:43:11 +00:00
this.hash.setAll({form: 'ecomerce/orders'});
}
,sessionsFunc() {
return 1;
}
});