2022-11-16 01:44:39 +00:00
|
|
|
import './style.scss';
|
2015-01-23 13:09:30 +00:00
|
|
|
|
2022-11-16 01:44:39 +00:00
|
|
|
export default new Class({
|
|
|
|
Extends: Hedera.Form,
|
|
|
|
Template: require('./ui.xml')
|
2015-01-23 13:09:30 +00:00
|
|
|
|
2022-11-16 01:46:44 +00:00
|
|
|
,rendererFunc(scope, form) {
|
2022-05-28 15:49:46 +00:00
|
|
|
var isEnabled = form.$.active
|
2022-05-28 01:18:06 +00:00
|
|
|
scope.$.disabled.style.display = isEnabled ?
|
2017-11-27 15:27:13 +00:00
|
|
|
'none' : 'block';
|
2022-05-28 01:18:06 +00:00
|
|
|
scope.$.impersonate.node.style.display = isEnabled ?
|
2017-11-27 15:27:13 +00:00
|
|
|
'block' : 'none';
|
|
|
|
}
|
2017-11-27 13:53:38 +00:00
|
|
|
|
2022-11-28 08:51:31 +00:00
|
|
|
,async onChangeUserClick(userName) {
|
|
|
|
await this.gui.supplantUser(userName);
|
2022-05-30 01:30:33 +00:00
|
|
|
this.hash.setAll({form: 'ecomerce/orders'});
|
2015-01-23 13:09:30 +00:00
|
|
|
}
|
|
|
|
});
|
|
|
|
|