Ghost/ghost/admin/app/components/modal-upgrade-host-limit.js
Naz a1aa9be287 Fixed hardcoded limit error message
refs https://github.com/TryGhost/Team/issues/588

- When the email limit was reached the hardcoded "members" error message was shown. Have changed implementation of the upgrade modal to take the "message" coming from the server into account
2021-05-10 15:04:10 +04:00

20 lines
527 B
JavaScript

import ModalComponent from 'ghost-admin/components/modal-base';
import {computed} from '@ember/object';
import {inject as service} from '@ember/service';
export default ModalComponent.extend({
router: service(),
upgradeMessage: computed('details', function () {
const {limit, total} = this.model.details;
const message = this.model.message;
return {limit, total, message};
}),
actions: {
upgrade: function () {
this.router.transitionTo('pro');
}
}
});