From b19222f00bf9eb4071ed0925ded2c810f62e6e52 Mon Sep 17 00:00:00 2001 From: Jonathan Cobb Date: Mon, 7 Dec 2020 15:27:20 -0500 Subject: [PATCH] allow launch when payments not enabled --- .../modals/LaunchBubbleSettingsModal.vue | 25 ++++++++++--------- 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/src/_components/modals/LaunchBubbleSettingsModal.vue b/src/_components/modals/LaunchBubbleSettingsModal.vue index e95934e..a07e928 100644 --- a/src/_components/modals/LaunchBubbleSettingsModal.vue +++ b/src/_components/modals/LaunchBubbleSettingsModal.vue @@ -512,17 +512,18 @@ export default { }, isComplete() { - return ( - (this.accountPlan.name !== '' || (this.accountPlan.forkHost !== '' && this.accountPlan.adminEmail !== '')) && - this.accountPlan.domain !== '' && - this.accountPlan.locale !== '' && - this.accountPlan.timezone !== '' && - this.accountPlan.plan !== '' && - this.accountPlan.footprint !== '' && - ((this.accountPlan.paymentMethodObject.paymentMethodType != null && - this.accountPlan.paymentMethodObject.paymentInfo != null) || - this.accountPlan.paymentMethodObject.uuid != null) - ); + return (( + this.accountPlan.name !== '' || (this.accountPlan.forkHost !== '' && this.accountPlan.adminEmail !== '')) && + this.accountPlan.domain !== '' && + this.accountPlan.locale !== '' && + this.accountPlan.timezone !== '' && + this.accountPlan.plan !== '' && + this.accountPlan.footprint !== '' && + (this.configs.paymentsEnabled === false || + ((this.accountPlan.paymentMethodObject.paymentMethodType != null && + this.accountPlan.paymentMethodObject.paymentInfo != null) || + this.accountPlan.paymentMethodObject.uuid != null) + )); }, localeTexts: function() { @@ -683,7 +684,7 @@ export default { this.errors.clear(); this.$validator.validate().then((valid) => { if (valid) { - if (this.paymentInfo || this.accountPlan.paymentMethodObject.uuid) { + if (this.configs.paymentsEnabled === false || this.paymentInfo || this.accountPlan.paymentMethodObject.uuid) { const cloudRegion = this.findRegion(this.cloudRegionUuid); if (cloudRegion === null) { this.errors.add({