Skip to content

Commit

Permalink
[entities] Trim name before saving
Browse files Browse the repository at this point in the history
  • Loading branch information
frankrousseau committed Jul 8, 2024
1 parent 0a01028 commit e8c6e67
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/components/modals/EditAssetModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<text-field
ref="nameField"
:label="$t('assets.fields.name')"
v-model="form.name"
v-model.trim="form.name"
@enter="runConfirmation"
v-focus
/>
Expand Down
2 changes: 1 addition & 1 deletion src/components/modals/EditEditModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<text-field
ref="nameField"
:label="$t('edits.fields.name')"
v-model="form.name"
v-model.trim="form.name"
@enter="runConfirmation"
v-focus
/>
Expand Down
2 changes: 1 addition & 1 deletion src/components/modals/EditEpisodeModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<text-field
ref="nameField"
:label="$t('episodes.fields.name')"
v-model="form.name"
v-model.trim="form.name"
@enter="runConfirmation"
v-focus
/>
Expand Down
2 changes: 1 addition & 1 deletion src/components/modals/EditSequenceModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<text-field
ref="nameField"
:label="$t('sequences.fields.name')"
v-model="form.name"
v-model.trim="form.name"
@enter="runConfirmation"
v-focus
/>
Expand Down
2 changes: 1 addition & 1 deletion src/components/modals/EditShotModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<text-field
ref="nameField"
:label="$t('shots.fields.name')"
v-model="form.name"
v-model.trim="form.name"
@enter="runConfirmation"
v-focus
/>
Expand Down

0 comments on commit e8c6e67

Please sign in to comment.