From e5ff5c2869c50d424955e1643fd42e9f84a6ac25 Mon Sep 17 00:00:00 2001 From: Nazar Gargol Date: Wed, 22 Apr 2020 14:51:04 +1200 Subject: [PATCH] Added billing controller for explicitness refs d691b15 - Additionally removed redundant super call --- ghost/admin/app/controllers/billing.js | 9 +++++++++ ghost/admin/app/routes/billing.js | 4 ---- 2 files changed, 9 insertions(+), 4 deletions(-) create mode 100644 ghost/admin/app/controllers/billing.js diff --git a/ghost/admin/app/controllers/billing.js b/ghost/admin/app/controllers/billing.js new file mode 100644 index 0000000000..9f28d0b729 --- /dev/null +++ b/ghost/admin/app/controllers/billing.js @@ -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') +}); diff --git a/ghost/admin/app/routes/billing.js b/ghost/admin/app/routes/billing.js index c3f581757d..5ff4df978a 100644 --- a/ghost/admin/app/routes/billing.js +++ b/ghost/admin/app/routes/billing.js @@ -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);