Ghost/ghost/admin/app/components/gh-billing-update-button.js
Kevin Ansfield 57b1ab4800 Ran ember-cli-update --run-codemods (#2219)
no issue

- part of ember upgrades
- removed all unnecessary usage of `.get`
- cleaned up imports where we had imports from the same module across multiple lines
- standardized on importing specific computed helpers rather than using `computed.foo`
- switched tests from using `wait()` to `settled()`
2022-01-21 19:25:47 +00:00

22 lines
535 B
JavaScript

import Component from '@ember/component';
import {reads} from '@ember/object/computed';
import {inject as service} from '@ember/service';
export default Component.extend({
router: service(),
config: service(),
ghostPaths: service(),
ajax: service(),
billing: service(),
subscription: null,
showUpgradeButton: reads('billing.subscription.isActiveTrial'),
actions: {
openBilling() {
this.billing.openBillingWindow(this.router.currentURL, '/pro/billing/plans');
}
}
});