1107798da6
Generated with a codemode: https://github.com/ember-cli/ember-modules-codemod
17 lines
381 B
JavaScript
17 lines
381 B
JavaScript
import Mixin from '@ember/object/mixin';
|
|
|
|
export default Mixin.create({
|
|
setupController(controller) {
|
|
if (this.get('isForbidden')) {
|
|
this.set('isForbidden', undefined);
|
|
controller.set('isForbidden', true);
|
|
}
|
|
this._super(...arguments);
|
|
},
|
|
|
|
resetController(controller) {
|
|
controller.set('isForbidden', false);
|
|
this._super(...arguments);
|
|
},
|
|
});
|