[Experimental] Added a new "Similar" radio based on users history (suggested by @gordon)

This commit is contained in:
Eliot Berriot 2019-01-30 16:54:06 +01:00
parent 602a4c3b29
commit 5ce4cc8379
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
4 changed files with 95 additions and 4 deletions

View file

@ -15,6 +15,7 @@
<button class="item basic" ref="add" data-ref="add" :disabled="!playable" @click.stop.prevent="add" :title="labels.addToQueue"><i class="plus icon"></i><translate>Add to queue</translate></button>
<button class="item basic" ref="addNext" data-ref="addNext" :disabled="!playable" @click.stop.prevent="addNext()" :title="labels.playNext"><i class="step forward icon"></i><translate>Play next</translate></button>
<button class="item basic" ref="playNow" data-ref="playNow" :disabled="!playable" @click.stop.prevent="addNext(true)" :title="labels.playNow"><i class="play icon"></i><translate>Play now</translate></button>
<button v-if="track" class="item basic" :disabled="!playable" @click.stop.prevent="$store.dispatch('radios/start', {type: 'similar', objectId: track.id})" :title="labels.startRadio"><i class="feed icon"></i><translate>Start radio</translate></button>
</div>
</div>
</span>
@ -62,7 +63,8 @@ export default {
return {
playNow: this.$gettext('Play now'),
addToQueue: this.$gettext('Add to current queue'),
playNext: this.$gettext('Play next')
playNext: this.$gettext('Play next'),
startRadio: this.$gettext('Play similar songs')
}
},
title () {