mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-28 22:43:30 +03:00
a2fe325b6b
no issue The subscription.status property was set for a Stripe response. Switch to a `isActiveTrial` custom property which we send from the BMA
22 lines
534 B
JavaScript
22 lines
534 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, '/billing/plans');
|
|
}
|
|
}
|
|
});
|