From baa18bbdc7f49f615b3e63c82650b314ef71d6e8 Mon Sep 17 00:00:00 2001 From: Eliot Berriot Date: Sat, 26 Jan 2019 13:13:48 +0100 Subject: [PATCH] Fix #676: overescaping issue in notifications and album page --- changes/changelog.d/676.bugfix | 1 + front/src/components/library/Album.vue | 12 +++++------- .../src/components/notifications/NotificationRow.vue | 6 +++--- 3 files changed, 9 insertions(+), 10 deletions(-) create mode 100644 changes/changelog.d/676.bugfix diff --git a/changes/changelog.d/676.bugfix b/changes/changelog.d/676.bugfix new file mode 100644 index 000000000..30829cd19 --- /dev/null +++ b/changes/changelog.d/676.bugfix @@ -0,0 +1 @@ +Fixed overescaping issue in notifications and album page (#676) diff --git a/front/src/components/library/Album.vue b/front/src/components/library/Album.vue index ba354914e..bb33b7e7f 100644 --- a/front/src/components/library/Album.vue +++ b/front/src/components/library/Album.vue @@ -10,13 +10,7 @@
{{ album.title }} - - Album containing %{ count } track, by %{ artist } - +
@@ -184,6 +178,10 @@ export default { this.$store.getters["instance/absoluteUrl"](this.album.cover.original) + ")" ) + }, + subtitle () { + let msg = this.$ngettext('Album containing %{ count } track, by %{ artist }', 'Album containing %{ count } tracks, by %{ artist }', this.album.tracks.length) + return this.$gettextInterpolate(msg, {count: this.album.tracks.length, artist: this.album.artist.name}) } }, watch: { diff --git a/front/src/components/notifications/NotificationRow.vue b/front/src/components/notifications/NotificationRow.vue index db5918c47..b134bc96b 100644 --- a/front/src/components/notifications/NotificationRow.vue +++ b/front/src/components/notifications/NotificationRow.vue @@ -4,10 +4,10 @@ - - {{ notificationData.message }} + + - +