mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-01 13:54:35 +03:00
57b1ab4800
no issue - part of ember upgrades - removed all unnecessary usage of `.get` - cleaned up imports where we had imports from the same module across multiple lines - standardized on importing specific computed helpers rather than using `computed.foo` - switched tests from using `wait()` to `settled()`
22 lines
535 B
JavaScript
22 lines
535 B
JavaScript
import Component from '@ember/component';
|
|
import {reads} from '@ember/object/computed';
|
|
import {inject as service} from '@ember/service';
|
|
|
|
export default Component.extend({
|
|
router: service(),
|
|
config: service(),
|
|
ghostPaths: service(),
|
|
ajax: service(),
|
|
billing: service(),
|
|
|
|
subscription: null,
|
|
|
|
showUpgradeButton: reads('billing.subscription.isActiveTrial'),
|
|
|
|
actions: {
|
|
openBilling() {
|
|
this.billing.openBillingWindow(this.router.currentURL, '/pro/billing/plans');
|
|
}
|
|
}
|
|
});
|