update track interface to follow server updates

+ add search debounce time
This commit is contained in:
geoffrey45
2022-09-11 20:37:29 +03:00
parent 47fc7fd705
commit f5b6791d4b
14 changed files with 50 additions and 43 deletions
+10 -4
View File
@@ -2,7 +2,11 @@
<div v-tooltip="returnArtists()" style="width: auto">
<div
class="ellip"
v-if="artists.length === 0 || (artists[0] === '' && artists.length === 1)"
v-if="
artists === null ||
artists.length === 0 ||
(artists[0] === '' && artists.length === 1)
"
>
<span>{{ albumartist }}</span>
</div>
@@ -18,15 +22,17 @@
import { putCommas } from "@/utils";
const props = defineProps<{
artists: string[];
artists: string[] | null;
albumartist: string | undefined;
}>();
function returnArtists() {
if (props.artists === null) return props.albumartist;
if (props.artists[0] !== "" && props.artists.length > 1) {
return props.artists.join(", ");
} else {
return props.albumartist;
}
return props.albumartist;
}
</script>