Verified Commit 8a321d4a authored by Eliot Berriot's avatar Eliot Berriot
Browse files

Fix #201: escaping issue of track name in playlist modal

parent 8d2529f4
......@@ -361,7 +361,7 @@ class Track(APIModelMixin):
import_tags
]
objects = TrackQuerySet.as_manager()
tags = TaggableManager()
tags = TaggableManager(blank=True)
class Meta:
ordering = ['album', 'position']
......
Fixed escaping issue of track name in playlist modal (#201)
......@@ -7,9 +7,7 @@
<div class="description">
<template v-if="track">
<h4 class="ui header">{{ $t('Current track') }}</h4>
<div>
{{ $t('"{%title%}" by {%artist%}', { title: track.title, artist: track.artist.name }) }}
</div>
<div v-html='trackDisplay'></div>
<div class="ui divider"></div>
</template>
......@@ -112,6 +110,12 @@ export default {
let p = _.sortBy(this.playlists, [(e) => { return e.modification_date }])
p.reverse()
return p
},
trackDisplay () {
return this.$t('"{%title%}" by {%artist%}', {
title: this.track.title,
artist: this.track.artist.name }
)
}
},
watch: {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment