2019-12-17 16:57:42 +03:00
|
|
|
import ModalComponent from 'ghost-admin/components/modal-base';
|
|
|
|
import {computed} from '@ember/object';
|
2021-04-28 11:13:24 +03:00
|
|
|
import {inject as service} from '@ember/service';
|
2019-12-17 16:57:42 +03:00
|
|
|
|
|
|
|
export default ModalComponent.extend({
|
2021-04-28 11:13:24 +03:00
|
|
|
router: service(),
|
|
|
|
|
2019-12-17 16:57:42 +03:00
|
|
|
upgradeMessage: computed('details', function () {
|
|
|
|
const {limit, total} = this.model.details;
|
2021-05-10 14:04:10 +03:00
|
|
|
const message = this.model.message;
|
|
|
|
|
|
|
|
return {limit, total, message};
|
2019-12-17 16:57:42 +03:00
|
|
|
}),
|
|
|
|
actions: {
|
|
|
|
upgrade: function () {
|
2021-04-28 11:13:24 +03:00
|
|
|
this.router.transitionTo('pro');
|
2019-12-17 16:57:42 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|