Ghost/ghost/admin/app/components/modal-upgrade-host-limit.js

20 lines
527 B
JavaScript
Raw Normal View History

import ModalComponent from 'ghost-admin/components/modal-base';
import {computed} from '@ember/object';
import {inject as service} from '@ember/service';
export default ModalComponent.extend({
router: service(),
upgradeMessage: computed('details', function () {
const {limit, total} = this.model.details;
const message = this.model.message;
return {limit, total, message};
}),
actions: {
upgrade: function () {
this.router.transitionTo('pro');
}
}
});