Skip to content
Snippets Groups Projects
Commit 4cfce2e3 authored by Konrad Mohrfeldt's avatar Konrad Mohrfeldt :koala:
Browse files

fix: show unknown playlist entry length as warning, not error

parent d068b3b9
No related branches found
No related tags found
No related merge requests found
Pipeline #7019 passed
......@@ -50,7 +50,9 @@
<template v-if="typeof entry.duration === 'number'">
{{ secondsToDurationString(entry.duration) }}
</template>
<span v-else class="tw-text-rose-600">{{ t('file.durationUnknown') }}</span>
<AStatus v-else class="tw-text-xs" rounded is-warning>
{{ t('file.durationUnknown') }}
</AStatus>
</span>
<div>
......@@ -145,6 +147,7 @@ import AEditDialog from '@/components/generic/AEditDialog.vue'
import FormTable from '@/components/generic/FormTable.vue'
import FormGroup from '@/components/generic/FormGroup.vue'
import AFileImportLog from '@/components/playlist/AFileImportLog.vue'
import AStatus from '@/components/generic/AStatus.vue'
const entry = defineModel<Partial<PlaylistEntry>>('entry', { required: true })
withDefaults(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment