From 1a70ca84f32350db5f79956c41154e5c9b63125e Mon Sep 17 00:00:00 2001 From: Jonathan Cobb Date: Tue, 24 Nov 2020 05:11:04 -0500 Subject: [PATCH] show appropriate options for launcher type --- .../modals/LaunchBubbleSettingsModal.vue | 34 ++++++++++++------- 1 file changed, 21 insertions(+), 13 deletions(-) diff --git a/src/_components/modals/LaunchBubbleSettingsModal.vue b/src/_components/modals/LaunchBubbleSettingsModal.vue index 3a70e4b..940d9e6 100644 --- a/src/_components/modals/LaunchBubbleSettingsModal.vue +++ b/src/_components/modals/LaunchBubbleSettingsModal.vue @@ -399,7 +399,7 @@ export default { accountPlan: { name: '', domain: '', - launchType: 'node', + launchType: null, locale: util.currentUser().locale, timezone: '', plan: 'bubble', @@ -482,20 +482,28 @@ export default { }, networkTypeOptions: function() { - return [ - { + const opts = []; + if (!(this.configs.localNetwork === true)) { + opts.push({ name: this.messages.field_label_network_type_regular, value: 'node', - }, - { - name: this.messages.field_label_network_type_fork_sage, - value: 'fork_sage', - }, - { - name: this.messages.field_label_network_type_fork_node, - value: 'fork_node', - }, - ]; + }); + if (this.accountPlan.launchType === null) { + this.accountPlan.launchType = 'node'; + } + } + opts.push({ + name: this.messages.field_label_network_type_fork_sage, + value: 'fork_sage', + }); + opts.push({ + name: this.messages.field_label_network_type_fork_node, + value: 'fork_node', + }); + if (this.accountPlan.launchType === null) { + this.accountPlan.launchType = 'fork_node'; + } + return opts; }, isComplete() {