Skip to content

Commit

Permalink
Dev (#18)
Browse files Browse the repository at this point in the history
* Synchronizing code from bitbucket repository

* Removing TomSelect because it is no longer updated

* Metric template remove restriction

* Multiple environment variables fix

---------

Co-authored-by: Fotis Paraskevopoulos <fotis@existanze.com>
  • Loading branch information
vkefalas-exz and fotisp authored Aug 26, 2024
1 parent 2d1737a commit 935955b
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions gui/src/components/Application/Details.vue
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,9 @@
<div class="flex flex-col">
<div class="flex space-x-4">
<Input
v-model="env.value"
:type="env.secret ==true ? 'password' : 'text' "
:class="{
v-model="env.value"
:type="env.secret ? 'password' : 'text'"
:class="{
'input--invalid': v.value?.$error || hasBackendError(`environmentVariables[${index}].value`)
}"
/>
Expand Down Expand Up @@ -210,9 +210,9 @@ const environmentVariablesCollectionRules = {
}
const state = reactive({
yamlValue: ref<string>(props.payload.content),
variables: ref<Array<IVariable>>(props.payload.variables),
environmentVariables: ref<Array<IEnvironment>>(props.payload.environmentVariables)
yamlValue: props.payload.content,
variables: props.payload.variables,
environmentVariables: props.payload.environmentVariables
})
const autocompleteOptions = ref<Array<{ label: string; value: string }>>([])
Expand All @@ -234,7 +234,7 @@ const removeVariable = (index: number) => {
const addEnvironment = () => {
console.log("Adding environment",state)
state.environmentVariables.push({ name: "", value:"", secret:true })
state.environmentVariables.push({ name: "", value: "", secret: false })
}
const removeEnvironment = (index: number) => {
Expand All @@ -251,6 +251,7 @@ queryParsedOptionsList()
defineExpose({
variables: computed(() => state.variables),
environmentVariables: computed(() => state.environmentVariables),
content: computed(() => state.yamlValue),
componentV$: computed(() => v$)
})
Expand Down

0 comments on commit 935955b

Please sign in to comment.