fix: use innerText as tooltip text instead of bindings

-
this fixes the updates problem
-
This commit is contained in:
geoffrey45
2022-09-21 01:32:28 +03:00
parent fa8be2cde4
commit e03ed66f44
9 changed files with 70 additions and 46 deletions
+1 -8
View File
@@ -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>