Skip to content

A self-hosted media server and file management system

fix: v-if chains on transcript are broken

aminnausin41e7b69f622c
diff --git a/resources/js/components/video/transcript/PlayerTranscript.vue b/resources/js/components/video/transcript/PlayerTranscript.vue
index 5b7a1d43..cbaf1b65 100644
--- a/resources/js/components/video/transcript/PlayerTranscript.vue
+++ b/resources/js/components/video/transcript/PlayerTranscript.vue
@@ -137,7 +137,7 @@ watch(activeIndex, async (index) => {
</button>
</div>
<TranscriptStatus
- v-if="hasError"
+ v-else-if="hasError"
:is-busy="isLoading"
:copy="isLoading ? { heading: 'Loading transcript', button: 'Loading...' } : { heading: 'Failed', description: 'Transcript failed to load', button: 'Retry' }"
:badge-class="cn({ 'bg-danger-2/10 text-danger-2': hasError && !isLoading })"
@@ -166,7 +166,7 @@ watch(activeIndex, async (index) => {
</div>
</div>
<GenerateTranscript
- v-else-if="!subtitleTrack"
+ v-else
:class="{ 'py-20': placement !== 'sidebar' }"
@generated="
(data) => {