Ghost/ghost/admin/app/components/gh-billing-update-button.js
Kevin Ansfield f07940f0e7 Collapsed @service injection definitions to single-line style
no issue

- find+replace to make service injection style consistent and take up much less space at the top of files that used multi-line syntax
2022-02-01 17:03:54 +00:00

25 lines
630 B
JavaScript

import Component from '@ember/component';
import classic from 'ember-classic-decorator';
import {action} from '@ember/object';
import {reads} from '@ember/object/computed';
import {inject as service} from '@ember/service';
@classic
export default class GhBillingUpdateButton extends Component {
@service router;
@service config;
@service ghostPaths;
@service ajax;
@service billing;
subscription = null;
@reads('billing.subscription.isActiveTrial')
showUpgradeButton;
@action
openBilling() {
this.billing.openBillingWindow(this.router.currentURL, '/pro/billing/plans');
}
}