2020-04-21 09:54:29 +03:00
|
|
|
import Component from '@ember/component';
|
2022-01-21 22:25:47 +03:00
|
|
|
import {reads} from '@ember/object/computed';
|
2020-04-21 09:54:29 +03:00
|
|
|
import {inject as service} from '@ember/service';
|
|
|
|
|
|
|
|
export default Component.extend({
|
2020-05-22 05:44:37 +03:00
|
|
|
router: service(),
|
2020-04-21 09:54:29 +03:00
|
|
|
config: service(),
|
|
|
|
ghostPaths: service(),
|
|
|
|
ajax: service(),
|
|
|
|
billing: service(),
|
|
|
|
|
|
|
|
subscription: null,
|
|
|
|
|
2022-01-21 22:25:47 +03:00
|
|
|
showUpgradeButton: reads('billing.subscription.isActiveTrial'),
|
2020-04-21 09:54:29 +03:00
|
|
|
|
|
|
|
actions: {
|
|
|
|
openBilling() {
|
2021-03-23 14:59:52 +03:00
|
|
|
this.billing.openBillingWindow(this.router.currentURL, '/pro/billing/plans');
|
2020-04-21 09:54:29 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|