mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-15 19:52:01 +03:00
d2dd33411a
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.
22 lines
538 B
JavaScript
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');
|
|
}
|
|
}
|
|
});
|