2020-04-21 08:54:29 +02:00
|
|
|
import Component from '@ember/component';
|
|
|
|
import {computed} from '@ember/object';
|
|
|
|
import {inject as service} from '@ember/service';
|
|
|
|
|
|
|
|
export default Component.extend({
|
2020-05-22 04:44:37 +02:00
|
|
|
router: service(),
|
2020-04-21 08:54:29 +02:00
|
|
|
config: service(),
|
|
|
|
ghostPaths: service(),
|
|
|
|
ajax: service(),
|
|
|
|
billing: service(),
|
|
|
|
|
|
|
|
subscription: null,
|
|
|
|
|
2020-05-22 04:44:37 +02:00
|
|
|
showUpgradeButton: computed.equal('billing.subscription.status', 'trialing'),
|
2020-04-21 08:54:29 +02:00
|
|
|
|
|
|
|
actions: {
|
|
|
|
openBilling() {
|
2020-05-22 04:44:37 +02:00
|
|
|
this.billing.openBillingWindow(this.router.currentURL, '/billing/plans');
|
2020-04-21 08:54:29 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|