Ghost/ghost/admin/app/components/gh-billing-update-button.js
Aileen Nowak d2dd33411a Changed /billing route to /pro (#1871)
no issue

The current `/billing` route needs to be renamed into `/pro`, so we can use sub-routes like `/pro/billing` and `/pro/domain` in the billing app.
2021-03-23 11:59:52 +00:00

22 lines
538 B
JavaScript

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