mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-02 08:13:34 +03:00
a1aa9be287
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
20 lines
527 B
JavaScript
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');
|
|
}
|
|
}
|
|
});
|