From 163eebe843896499307214f94991d7bd257b3670 Mon Sep 17 00:00:00 2001 From: naglepuff Date: Fri, 9 Jan 2026 16:16:25 -0500 Subject: [PATCH 1/3] Hide "my recordings" if non-admins can't upload --- client/src/components/RecordingList.vue | 2 +- client/src/views/Recordings.vue | 34 +++++++++++++++++++------ 2 files changed, 27 insertions(+), 9 deletions(-) diff --git a/client/src/components/RecordingList.vue b/client/src/components/RecordingList.vue index 2a57554d..0dce3ecd 100644 --- a/client/src/components/RecordingList.vue +++ b/client/src/components/RecordingList.vue @@ -79,7 +79,7 @@ export default defineComponent({ - + My Recordings
{ + const myRecordingListStyles = computed(() => { const sectionHeight = configuration.value.mark_annotations_completed_enabled ? '35vh' : '40vh'; return { 'height': sectionHeight, @@ -268,6 +269,22 @@ export default defineComponent({ }; }); + const sharedRecordingListStyles = computed(() => { + let sectionHeight: string; + if (configuration.value.mark_annotations_completed_enabled) { + sectionHeight = '35vh'; + } else { + sectionHeight = '40vh'; + } + if (!configuration.value.is_admin && !configuration.value.non_admin_upload_enabled) { + sectionHeight = '75vh'; + } + return { + 'height': sectionHeight, + 'max-height': sectionHeight, + } + }); + onMounted(async () => { addSubmittedColumns(); hideDetailedMetadataColumns(); @@ -349,7 +366,8 @@ export default defineComponent({ configuration, submittedMyRecordings, submittedSharedRecordings, - recordingListStyles, + myRecordingListStyles, + sharedRecordingListStyles, showSubmittedRecordings, myRecordingsDisplay, sharedRecordingsDisplay, @@ -361,20 +379,19 @@ export default defineComponent({