From 7563fd6e72054e3b551599abc8afc0118ce267b9 Mon Sep 17 00:00:00 2001 From: Nicolas Pennec Date: Mon, 11 Sep 2023 12:24:54 +0200 Subject: [PATCH] [shots] fix metadata type for frame in/out --- src/components/lists/ShotList.vue | 12 ++++++++---- src/components/pages/breakdown/ShotLine.vue | 12 ++++++++++-- 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/src/components/lists/ShotList.vue b/src/components/lists/ShotList.vue index 12fe47b0f..c1384c591 100644 --- a/src/components/lists/ShotList.vue +++ b/src/components/lists/ShotList.vue @@ -425,7 +425,7 @@ event => onMetadataFieldChanged( shot, - { field_name: 'frame_in' }, + { field_name: 'frame_in', data_type: 'number' }, event ) " @@ -459,7 +459,7 @@ event => onMetadataFieldChanged( shot, - { field_name: 'frame_out' }, + { field_name: 'frame_out', data_type: 'number' }, event ) " @@ -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 => @@ -519,7 +523,7 @@ event => onMetadataFieldChanged( shot, - { field_name: 'max_retakes' }, + { field_name: 'max_retakes', data_type: 'number' }, event ) " diff --git a/src/components/pages/breakdown/ShotLine.vue b/src/components/pages/breakdown/ShotLine.vue index f7d3c46fb..c3235c5e6 100644 --- a/src/components/pages/breakdown/ShotLine.vue +++ b/src/components/pages/breakdown/ShotLine.vue @@ -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" /> @@ -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" />