Skip to content

Commit

Permalink
♻ : better use of conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
juwit committed Apr 16, 2021
1 parent 43eda58 commit 11acf19
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/main/client/app/pages/stacks/stack-variable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,6 @@
:label="name"
:description="description"
>
<b-input
v-if="! isListRegex && ! complexType"
v-model="editableValue"
:state="validAndEmit().result"
trim
@input="$emit('input', editableValue)"
/>
<b-textarea
v-if="complexType"
v-model="editableValue"
Expand All @@ -19,12 +12,19 @@
@input="$emit('input', editableValue)"
/>
<b-select
v-if="isListRegex"
v-else-if="isListRegex"
v-model="editableValue"
:state="validAndEmit().result"
:options="listOptions"
@input="$emit('input', editableValue)"
/>
<b-input
v-else
v-model="editableValue"
:state="validAndEmit().result"
trim
@input="$emit('input', editableValue)"
/>
<b-form-invalid-feedback>{{ valid().message }}</b-form-invalid-feedback>
</b-form-group>
</template>
Expand Down

0 comments on commit 11acf19

Please sign in to comment.