mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-30 11:54:33 +03:00
f07940f0e7
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
25 lines
630 B
JavaScript
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');
|
|
}
|
|
}
|