made stuff nicer a bit

This commit is contained in:
2020-11-26 21:53:32 +01:00
parent 9dc4a1a25c
commit 4c7f0cc58d
4 changed files with 38 additions and 6 deletions

View File

@@ -20,7 +20,7 @@
<template #cell(id)="data">
<div class="text-right">
<b-button variant="success" :disabled="!data.item.spotify_id" @click="startPlayer(data.item.spotify_id)">
Play
<b-icon icon="play-fill"/> Play
</b-button>
</div>
</template>

View File

@@ -7,7 +7,8 @@
</b-row>
<big-chungus-loader text="Fetching collections..." v-if="processing"/>
<b-row v-else>
<collections-list-element :title="c.name" :count="c.element_count" @click="openCollection(c.id)" :key="c.id" v-for="c in collections"/>
<collections-list-element :title="c.name" :count="c.element_count" :type="c.type" @click="openCollection(c.id)"
:key="c.id" v-for="c in collections"/>
</b-row>
</b-container>
</template>
@@ -41,6 +42,7 @@ export default {
}).catch(({text}) => {
this.$showToast(text);
});
}
}
</script>

View File

@@ -23,7 +23,7 @@
</div>
<div class="my-3">
<b-button :disabled="!songInfo.spotify_id" :href="spotifyLink" target="_blank">Open on Spotify!</b-button>&nbsp;
<b-button variant="success" :disabled="!songInfo.spotify_id" @click="startPlayer">Play!</b-button>
<b-button variant="success" :disabled="!songInfo.spotify_id" @click="startPlayer"><b-icon icon="play-fill"/> Play!</b-button>
</div>
</b-col>