-
Select a product for {{or
- this.member.name this.member.email}}'s complimentary
- subscription.
+
+ Select a product for {{or this.member.name this.member.email}}'s
+ complimentary subscription.
+
{{#if this.activeSubscriptions.length}}
Adding a complimentary subscription cancels all existing subscriptions of this member.
@@ -43,8 +45,7 @@
diff --git a/ghost/admin/app/components/modal-stripe-connect.js b/ghost/admin/app/components/modal-stripe-connect.js
index 21736ab7ea..960b168f0a 100644
--- a/ghost/admin/app/components/modal-stripe-connect.js
+++ b/ghost/admin/app/components/modal-stripe-connect.js
@@ -32,4 +32,14 @@ export default class ModalStripeConnect extends ModalBase {
}
}
}
+
+ actions = {
+ confirm() {
+ if (this.settings.get('stripeConnectAccountId')) {
+ return this.send('closeModal');
+ }
+
+ // noop - enter key shouldn't do anything
+ }
+ }
}
diff --git a/ghost/admin/app/components/modal-theme-warnings.js b/ghost/admin/app/components/modal-theme-warnings.js
index 0a81100fa5..87e743a557 100644
--- a/ghost/admin/app/components/modal-theme-warnings.js
+++ b/ghost/admin/app/components/modal-theme-warnings.js
@@ -9,5 +9,11 @@ export default ModalComponent.extend({
warnings: reads('model.warnings'),
errors: reads('model.errors'),
fatalErrors: reads('model.fatalErrors'),
- canActivate: reads('model.canActivate')
+ canActivate: reads('model.canActivate'),
+
+ actions: {
+ confirm() {
+ this.send('closeModal');
+ }
+ }
});
diff --git a/ghost/admin/app/components/modal-upgrade-custom-integrations-host-limit.js b/ghost/admin/app/components/modal-upgrade-custom-integrations-host-limit.js
index 11f1e858c2..99c3e17ee7 100644
--- a/ghost/admin/app/components/modal-upgrade-custom-integrations-host-limit.js
+++ b/ghost/admin/app/components/modal-upgrade-custom-integrations-host-limit.js
@@ -5,8 +5,12 @@ export default ModalComponent.extend({
router: service(),
actions: {
- upgrade: function () {
+ upgrade() {
this.router.transitionTo('pro');
+ },
+
+ confirm() {
+ this.send('upgrade');
}
}
});
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 11f1e858c2..99c3e17ee7 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
@@ -5,8 +5,12 @@ export default ModalComponent.extend({
router: service(),
actions: {
- upgrade: function () {
+ upgrade() {
this.router.transitionTo('pro');
+ },
+
+ confirm() {
+ this.send('upgrade');
}
}
});
diff --git a/ghost/admin/app/components/modal-upgrade-host-limit.js b/ghost/admin/app/components/modal-upgrade-host-limit.js
index 8dee14ae98..0be3f8c190 100644
--- a/ghost/admin/app/components/modal-upgrade-host-limit.js
+++ b/ghost/admin/app/components/modal-upgrade-host-limit.js
@@ -11,9 +11,14 @@ export default ModalComponent.extend({
return {limit, total, message};
}),
+
actions: {
- upgrade: function () {
+ upgrade() {
this.router.transitionTo('pro');
+ },
+
+ confirm() {
+ this.send('upgrade');
}
}
});
diff --git a/ghost/admin/app/components/modal-upgrade-unsuspend-user-host-limit.js b/ghost/admin/app/components/modal-upgrade-unsuspend-user-host-limit.js
index 11f1e858c2..99c3e17ee7 100644
--- a/ghost/admin/app/components/modal-upgrade-unsuspend-user-host-limit.js
+++ b/ghost/admin/app/components/modal-upgrade-unsuspend-user-host-limit.js
@@ -5,8 +5,12 @@ export default ModalComponent.extend({
router: service(),
actions: {
- upgrade: function () {
+ upgrade() {
this.router.transitionTo('pro');
+ },
+
+ confirm() {
+ this.send('upgrade');
}
}
});
diff --git a/ghost/admin/app/components/modal-whats-new.js b/ghost/admin/app/components/modal-whats-new.js
index e1dde58d78..563ad0bff5 100644
--- a/ghost/admin/app/components/modal-whats-new.js
+++ b/ghost/admin/app/components/modal-whats-new.js
@@ -4,5 +4,10 @@ import {inject as service} from '@ember/service';
export default ModalComponent.extend({
whatsNew: service(),
- confirm() {}
+ confirm() {},
+
+ actions: {
+ // noop - enter key shouldn't do anything
+ confirm() {}
+ }
});