mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-22 02:11:44 +03:00
d51f2bcf23
closes https://github.com/TryGhost/Admin/pull/2107 - updated related babel dependencies - bumped eslint - ran `yarn lint:js --fix` - added eslint ignore comments for some required non-camel-case properties
25 lines
634 B
JavaScript
25 lines
634 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');
|
|
}
|
|
}
|