2020-04-21 09:54:29 +03: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 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,
|
|
|
|
|
2021-03-04 10:25:21 +03:00
|
|
|
showUpgradeButton: computed.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
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|