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/modal-upgrade-host-limit.js
Rishabh Garg f95c68662b
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;
}
}
});