mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-03 03:55:26 +03:00
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;
|
||
|
}
|
||
|
}
|
||
|
});
|