Ghost/ghost/admin/app/components/modal-upgrade-host-limit.js
Naz 3435ffcf21 Fixed upgrade modal cta when publishing a post
refs https://github.com/TryGhost/Team/issues/589

- Previous upgrade button behavior was opening up a new browser window leading to now retired billing site. Tha behavior change looks like an oversight we missed to cleanup when introducing an in-admin billing pabe "/pro"
- The change follows similar pattern used in other limit check mesages where tha "upgrade" button takes the user to the billing page
2021-04-28 12:13:24 +04:00

18 lines
473 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;
return {limit, total};
}),
actions: {
upgrade: function () {
this.router.transitionTo('pro');
}
}
});