mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-04 20:43:04 +00:00
fix: use innerText as tooltip text instead of bindings
- this fixes the updates problem -
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<div v-tooltip="returnArtists()" style="width: auto">
|
||||
<div v-tooltip style="width: auto">
|
||||
<div class="ellip" v-if="artists === null || artists.length === 0">
|
||||
<span>{{ albumartist }}</span>
|
||||
</div>
|
||||
@@ -18,11 +18,4 @@ const props = defineProps<{
|
||||
artists: string[] | null;
|
||||
albumartist: string | undefined;
|
||||
}>();
|
||||
|
||||
function returnArtists() {
|
||||
if (props.artists === null || props.artists.length === 0)
|
||||
return props.albumartist;
|
||||
|
||||
return props.artists.join(", ");
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user