forked from verdnatura/hedera-web
refs #3971 Webpack imports
This commit is contained in:
parent
22ce6425de
commit
5f1f0423cf
|
@ -0,0 +1,37 @@
|
||||||
|
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);
|
||||||
|
}
|
||||||
|
|
||||||
|
,onChangeUserClick: function(userName) {
|
||||||
|
this.gui.supplantUser(userName,
|
||||||
|
this._onUserSupplant.bind(this));
|
||||||
|
}
|
||||||
|
|
||||||
|
,_onUserSupplant() {
|
||||||
|
this.hash.setAll({form: 'ecomerce/orders'});
|
||||||
|
}
|
||||||
|
|
||||||
|
,sessionsFunc() {
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
Loading…
Reference in New Issue