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

18 lines
504 B
JavaScript
Raw Normal View History

import ModalComponent from 'ghost-admin/components/modal-base';
import {computed} from '@ember/object';
export default ModalComponent.extend({
upgradeMessage: computed('details', function () {
const {limit, total} = this.model.details;
return {limit, total};
}),
actions: {
upgrade: function () {
const upgradeLink = this.model.upgradeLink;
window.open(upgradeLink);
this.closeModal();
return true;
}
}
});