mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-25 09:03:12 +03:00
Added billing controller for explicitness
refs d691b15
- Additionally removed redundant super call
This commit is contained in:
parent
d691b15f82
commit
e5ff5c2869
9
ghost/admin/app/controllers/billing.js
Normal file
9
ghost/admin/app/controllers/billing.js
Normal 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')
|
||||
});
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user