mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-23 10:53:34 +03:00
d1cf671cbb
no issue
Uses 160ef2976a
to add new upgrade popup for host limit errors while publishing/scheduling post with emails.
18 lines
504 B
JavaScript
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;
|
|
}
|
|
}
|
|
});
|