Skip to content

Commit

Permalink
Merge pull request #1177 from NicoPennec/fix/number-metadata
Browse files Browse the repository at this point in the history
[shots] fix metadata type for frame in/out
  • Loading branch information
frankrousseau authored Sep 11, 2023
2 parents 600ce0a + 7563fd6 commit bedbdb5
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
12 changes: 8 additions & 4 deletions src/components/lists/ShotList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@
event =>
onMetadataFieldChanged(
shot,
{ field_name: 'frame_in' },
{ field_name: 'frame_in', data_type: 'number' },
event
)
"
Expand Down Expand Up @@ -459,7 +459,7 @@
event =>
onMetadataFieldChanged(
shot,
{ field_name: 'frame_out' },
{ field_name: 'frame_out', data_type: 'number' },
event
)
"
Expand Down Expand Up @@ -488,7 +488,11 @@
@keydown="onNumberFieldKeyDown"
@input="
event =>
onMetadataFieldChanged(shot, { field_name: 'fps' }, event)
onMetadataFieldChanged(
shot,
{ field_name: 'fps', data_type: 'number' },
event
)
"
@keyup.ctrl="
event =>
Expand Down Expand Up @@ -519,7 +523,7 @@
event =>
onMetadataFieldChanged(
shot,
{ field_name: 'max_retakes' },
{ field_name: 'max_retakes', data_type: 'number' },
event
)
"
Expand Down
12 changes: 10 additions & 2 deletions src/components/pages/breakdown/ShotLine.vue
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,11 @@
:value="getMetadataFieldValue({ field_name: 'frame_in' }, entity)"
@input="
event =>
onMetadataFieldChanged(entity, { field_name: 'frame_in' }, event)
onMetadataFieldChanged(
entity,
{ field_name: 'frame_in', data_type: 'number' },
event
)
"
v-if="isCurrentUserManager"
/>
Expand All @@ -113,7 +117,11 @@
:value="getMetadataFieldValue({ field_name: 'frame_out' }, entity)"
@input="
event =>
onMetadataFieldChanged(entity, { field_name: 'frame_out' }, event)
onMetadataFieldChanged(
entity,
{ field_name: 'frame_out', data_type: 'number' },
event
)
"
v-if="isCurrentUserManager"
/>
Expand Down

0 comments on commit bedbdb5

Please sign in to comment.