From 8594126dc9747fbe388aebe6b107071efd369629 Mon Sep 17 00:00:00 2001 From: Naz Date: Wed, 28 Apr 2021 14:15:48 +0400 Subject: [PATCH] Fixed upgrade modal cta when activating a theme refs https://github.com/TryGhost/Team/issues/590 - 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 --- .../components/modal-upgrade-host-limit-custom-theme.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ghost/admin/app/components/modal-upgrade-host-limit-custom-theme.js b/ghost/admin/app/components/modal-upgrade-host-limit-custom-theme.js index 5d4c025835..11f1e858c2 100644 --- a/ghost/admin/app/components/modal-upgrade-host-limit-custom-theme.js +++ b/ghost/admin/app/components/modal-upgrade-host-limit-custom-theme.js @@ -1,12 +1,12 @@ import ModalComponent from 'ghost-admin/components/modal-base'; +import {inject as service} from '@ember/service'; export default ModalComponent.extend({ + router: service(), + actions: { upgrade: function () { - const upgradeLink = this.model.upgradeLink; - window.open(upgradeLink); - this.closeModal(); - return true; + this.router.transitionTo('pro'); } } });