#76 fix: add ssh key while launching a bubble

Samengevoegd
jonathan heeft 2 commits samengevoegd van fix/ssh-key-while-launching naar master 4 jaren geleden
  1. +15
    -8
      src/_components/modals/LaunchBubbleSettingsModal.vue

+ 15
- 8
src/_components/modals/LaunchBubbleSettingsModal.vue Bestand weergeven

@@ -38,7 +38,6 @@
class="text-center description"
v-html="messages.field_description_network_type"
/>

</div>
</div>
<!-- fork host and admin name -->
@@ -266,6 +265,8 @@
<v-select
:clearable="false"
:placeholder="messages.field_label_network_ssh_key"
v-model="accountPlan.sshKey"
:reduce="(options) => options.uuid"
:options="sshKeys"
>
<template v-slot:selected-option="option">
@@ -512,8 +513,10 @@ export default {
},

isComplete() {
return ((
this.accountPlan.name !== '' || (this.accountPlan.forkHost !== '' && this.accountPlan.adminEmail !== '')) &&
return (
(this.accountPlan.name !== '' ||
(this.accountPlan.forkHost !== '' &&
this.accountPlan.adminEmail !== '')) &&
this.accountPlan.domain !== '' &&
this.accountPlan.locale !== '' &&
this.accountPlan.timezone !== '' &&
@@ -522,8 +525,8 @@ export default {
(this.configs.paymentsEnabled === false ||
((this.accountPlan.paymentMethodObject.paymentMethodType != null &&
this.accountPlan.paymentMethodObject.paymentInfo != null) ||
this.accountPlan.paymentMethodObject.uuid != null)
));
this.accountPlan.paymentMethodObject.uuid != null))
);
},

localeTexts: function() {
@@ -684,7 +687,11 @@ export default {
this.errors.clear();
this.$validator.validate().then((valid) => {
if (valid) {
if (this.configs.paymentsEnabled === false || 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({
@@ -825,7 +832,7 @@ export default {
}
}
}
}
}
},
},
};
</script>

Laden…
Annuleren
Opslaan