From 87ab26001d380f5d9828aad01797fcb43a7d595a Mon Sep 17 00:00:00 2001 From: Matthias Meulien Date: Wed, 8 May 2024 17:28:18 +0200 Subject: [PATCH] Show/Hide mute and volume controls depending on volume value Refs: #874 --- src/js/components/PlaybackControls.js | 29 ++++++++++++++------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/src/js/components/PlaybackControls.js b/src/js/components/PlaybackControls.js index 9c8fa1a4d..5363cd881 100755 --- a/src/js/components/PlaybackControls.js +++ b/src/js/components/PlaybackControls.js @@ -195,20 +195,21 @@ const PlaybackControls = () => { - -
- dispatch(mopidyActions.setMute(value))} - /> - dispatch(mopidyActions.setVolume(value))} - /> -
- + { + volume !== null && +
+ dispatch(mopidyActions.setMute(value))} + /> + dispatch(mopidyActions.setVolume(value))} + /> +
+ }