mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-10-29 12:34:43 +00:00
use ternary op to send copyright text to songlist component
+ return a zeros if seconds is undefined in formatSeconds()
This commit is contained in:
1 parent
5f14fbf86d
commit
13f38c5a66
5 files changed
+9
-11
No files matched your search
@@ -22,7 +22,7 @@
|
||||
<div class="text">No tracks here</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="copyright" v-if="copyright()">
|
||||
<div class="copyright" v-if="copyright">
|
||||
{{ copyright() }}
|
||||
</div>
|
||||
</div>
|
||||
@@ -49,7 +49,7 @@ const props = defineProps<{
|
||||
playlistid?: string;
|
||||
on_album_page?: boolean;
|
||||
disc?: string | number;
|
||||
copyright?: () => string;
|
||||
copyright?: (() => string) | null;
|
||||
}>();
|
||||
|
||||
const route = useRoute();
|
||||
|
||||
Reference in new issue
Block a user