Merge pull request #2160 from vaz-ar/trim_fields

Trim important fields in repository and inventory forms
This commit is contained in:
Denis Gukov 2024-07-02 22:28:09 +05:00 committed by GitHub
commit 2b08829f1e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View File

@ -52,7 +52,7 @@
></v-select>
<v-text-field
v-model="item.inventory"
v-model.trim="item.inventory"
:label="$t('pathToInventoryFile')"
:rules="[v => !!v || $t('path_required')]"
required
@ -73,7 +73,7 @@
<codemirror
:style="{ border: '1px solid lightgray' }"
v-model="item.inventory"
v-model.trim="item.inventory"
:options="cmOptions"
v-if="item.type === 'static' || item.type === 'static-yaml'"
:placeholder="$t('enterInventory')"

View File

@ -21,7 +21,7 @@
></v-text-field>
<v-text-field
v-model="item.git_url"
v-model.trim="item.git_url"
:label="$t('urlOrPath')"
:rules="[
v => !!v || $t('repository_required'),
@ -56,7 +56,7 @@
</div>
<v-text-field
v-model="item.git_branch"
v-model.trim="item.git_branch"
:label="$t('branch')"
:rules="[v => (!!v || type === 'local') || $t('branch_required')]"
required