1
0
Fork 0
mirror of https://github.com/TryGhost/Ghost-Admin.git synced 2023-12-14 02:33:04 +01:00
Ghost-Admin/app/components/gh-billing-update-button.js

22 lines
539 B
JavaScript
Raw Normal View History

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.equal('billing.subscription.status', 'trialing'),
actions: {
openBilling() {
this.billing.openBillingWindow(this.router.currentURL, '/billing/plans');
}
}
});