mirror of
https://github.com/semaphoreui/semaphore.git
synced 2024-11-23 12:30:41 +01:00
Merge pull request #2160 from vaz-ar/trim_fields
Trim important fields in repository and inventory forms
This commit is contained in:
commit
2b08829f1e
@ -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')"
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user