fixup search results

This commit is contained in:
Thomas Amland 2020-07-31 11:33:36 +02:00
parent 4559846172
commit c2ee588c7e

View File

@ -1,29 +1,13 @@
<template> <template>
<div v-if="result"> <div v-if="result">
<div> <div v-if="result.artists.length > 0" class="mb-5">
<h5 class="text-uppercase">Artists</h5> <h1>Artists</h1>
<ArtistList :items="result.artists"/> <ArtistList :items="result.artists"/>
<b-table-simple hover borderless>
<tbody>
<tr v-for="item in result.artists" :key="item.id">
<td>{{ item.name }}</td>
</tr>
</tbody>
</b-table-simple>
</div> </div>
<div> <div v-if="result.albums.length > 0" class="mb-5">
<h5 class="text-uppercase">Albums</h5> <h1>Albums</h1>
<AlbumList :items="result.albums"/> <AlbumList :items="result.albums"/>
<b-table-simple hover borderless>
<tbody>
<tr v-for="item in result.albums">
<td>{{ item.name }}</td>
<td>{{ item.artist }}</td>
</tr>
</tbody>
</b-table-simple>
</div> </div>
<div> <div>