Ghost/ghost/admin/app/components/modal-upgrade-host-limit.js
Rishabh Garg d1cf671cbb Added upgrade modal for host member limits (#1428)
no issue

Uses 160ef2976a to add new upgrade popup for host limit errors while publishing/scheduling post with emails.
2019-12-17 19:27:42 +05:30

18 lines
504 B
JavaScript

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;
}
}
});