Skip to content

Commit cbcf6bf

Browse files
committed
fix: less flashing of camera selector on timeline view
1 parent 97383db commit cbcf6bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ui/src/views/CameraTimelineView.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -372,9 +372,9 @@ const handleVideoEnded = () => {
372372
</button>
373373
</div>
374374

375-
<div class="flex flex-wrap items-center gap-2 sm:gap-3 text-sm">
375+
<div v-if="streamStore.streams.length > 0" class="flex flex-wrap items-center gap-2 sm:gap-3 text-sm">
376376
<select
377-
v-if="streamStore.streams.length > 0"
377+
v-once
378378
:value="streamId"
379379
@change="router.push({ name: 'camera-timeline', params: { streamId: ($event.target as HTMLSelectElement).value } })"
380380
class="bg-gray-800 text-white px-2 sm:px-3 py-1 rounded text-sm border border-gray-700"

0 commit comments

Comments
 (0)