Ghost/ghost/admin/app/components/gh-billing-update-button.js
Gabriel Csapo d51f2bcf23 [chore] migrate to eslint@8 and run --fix (#2256)
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
2022-02-10 10:41:36 +00:00

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');
}
}