From f6a4e4b7a3b7f6dcd934b4a91625e3e7fdd119b5 Mon Sep 17 00:00:00 2001 From: Eliot Berriot <contact@eliotberriot.com> Date: Sun, 18 Feb 2018 15:08:18 +0100 Subject: [PATCH] Now reset player colors when track has no coverNow reset player colors when track has no cover --- CHANGELOG | 1 + front/src/components/audio/Player.vue | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index 2d005e1a3..03665014f 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -5,6 +5,7 @@ Changelog 0.5 (Unreleased) ---------------- +- Front: Now reset player colors when track has no cover (#46) 0.4 (2018-02-18) ---------------- diff --git a/front/src/components/audio/Player.vue b/front/src/components/audio/Player.vue index e44a92d4f..5e9965158 100644 --- a/front/src/components/audio/Player.vue +++ b/front/src/components/audio/Player.vue @@ -232,7 +232,7 @@ export default { }, watch: { currentTrack (newValue) { - if (!newValue) { + if (!newValue || !newValue.album.cover) { this.ambiantColors = this.defaultAmbiantColors } }, -- GitLab