From 848bef99dc78c3cb0d35c62ecefc2b8f8b4a6102 Mon Sep 17 00:00:00 2001 From: Richard Tan Date: Tue, 26 Nov 2024 17:45:33 +0800 Subject: [PATCH] Open new tab to setup payment on dev --- packages/host/app/components/matrix/payment-setup.gts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/host/app/components/matrix/payment-setup.gts b/packages/host/app/components/matrix/payment-setup.gts index 9fce570d62..83743e52fc 100644 --- a/packages/host/app/components/matrix/payment-setup.gts +++ b/packages/host/app/components/matrix/payment-setup.gts @@ -2,6 +2,8 @@ import { on } from '@ember/modifier'; import { action } from '@ember/object'; import { service } from '@ember/service'; +import ENV from '@cardstack/host/config/environment'; + import Component from '@glimmer/component'; import { tracked } from '@glimmer/tracking'; @@ -24,6 +26,8 @@ import { Lock, } from '@cardstack/boxel-ui/icons'; +const { environment } = ENV; + import ProfileSettingsModal from '@cardstack/host/components/operator-mode/profile/profile-settings-modal'; import ProfileInfoPopover from '@cardstack/host/components/operator-mode/profile-info-popover'; import type BillingService from '@cardstack/host/services/billing-service'; @@ -124,6 +128,7 @@ export default class PaymentSetup extends Component { @href={{this.stripePaymentLink}} data-test-setup-payment class='setup-button' + target={{if (eq environment 'development') '_blank' '_self'}} > Set up Secure Payment Method