Added billing controller for explicitness

refs d691b15

- Additionally removed redundant super call
This commit is contained in:
Nazar Gargol 2020-04-22 14:51:04 +12:00
parent d691b15f82
commit e5ff5c2869
2 changed files with 9 additions and 4 deletions

View File

@ -0,0 +1,9 @@
import Controller from '@ember/controller';
import {alias} from '@ember/object/computed';
export default Controller.extend({
queryParams: ['action'],
action: null,
guid: alias('model')
});

View File

@ -8,10 +8,6 @@ export default Route.extend({
action: {refreshModel: true}
},
init() {
this._super(...arguments);
},
model(params) {
if (params.action) {
this.billing.set('action', params.action);