Make Youtube matching work a little again

This commit is contained in:
Jonathan Cremin 2017-11-12 00:33:56 +00:00
parent f757152c7d
commit a919d80f64
8 changed files with 49 additions and 29 deletions

View file

@ -38,7 +38,7 @@ export default {
this.submitting = false;
if (res.status == 200) {
const item = res.body;
this.$router.push(`/${item.service}/${item.albumName ? 'track' : 'album'}/${item.externalId}`);
this.$router.push(`/${item.service}/${item.type}/${item.externalId}`);
} else {
this.error = res.body.message;
}

View file

@ -2,7 +2,7 @@
<div class="container" v-if="item.name">
<social v-bind:name="item.name" v-bind:artist="item.artist.name" v-bind:url="`https://combine.fm/${item.service}/${item.type}/${item.externalId}`"></social>
<div class="share-heading">
<h3 class="title is-3">Matched {{ item.albumName ? 'tracks' : 'albums' }} for</h3>
<h3 class="title is-3">Matched {{ item.type === 'track' ? 'tracks' : 'albums' }} for</h3>
<h2 class="title is-2"><strong>{{ item.name }}</strong> - {{ item.artist.name }}</h2>
</div>
<ul class="columns is-multiline">