From 04d16fc5353285e2878954afcd206676886a8269 Mon Sep 17 00:00:00 2001 From: advplyr Date: Wed, 14 Feb 2024 18:28:19 -0600 Subject: [PATCH] Fix:Audio player buttons to use button el and add aria-label translations #2599 --- .../components/app/MediaPlayerContainer.vue | 2 +- client/components/controls/VolumeControl.vue | 10 +++++----- .../player/PlayerPlaybackControls.vue | 20 +++++++++---------- client/components/player/PlayerUi.vue | 18 ++++++++--------- client/strings/cs.json | 6 ++++++ client/strings/da.json | 6 ++++++ client/strings/de.json | 8 +++++++- client/strings/en-us.json | 5 +++++ client/strings/es.json | 6 ++++++ client/strings/fr.json | 6 ++++++ client/strings/gu.json | 6 ++++++ client/strings/hi.json | 6 ++++++ client/strings/hr.json | 6 ++++++ client/strings/it.json | 6 ++++++ client/strings/lt.json | 6 ++++++ client/strings/nl.json | 6 ++++++ client/strings/no.json | 6 ++++++ client/strings/pl.json | 6 ++++++ client/strings/ru.json | 6 ++++++ client/strings/sv.json | 6 ++++++ client/strings/zh-cn.json | 6 ++++++ 21 files changed, 127 insertions(+), 26 deletions(-) diff --git a/client/components/app/MediaPlayerContainer.vue b/client/components/app/MediaPlayerContainer.vue index 2e0afc55..120231dc 100644 --- a/client/components/app/MediaPlayerContainer.vue +++ b/client/components/app/MediaPlayerContainer.vue @@ -29,7 +29,7 @@
- close +
-
+
+
@@ -38,8 +38,8 @@ export default { }, set(val) { try { - localStorage.setItem("volume", val); - } catch(error) { + localStorage.setItem('volume', val) + } catch (error) { console.error('Failed to store volume', err) } this.$emit('input', val) @@ -146,7 +146,7 @@ export default { if (this.value === 0) { this.isMute = true } - const storageVolume = localStorage.getItem("volume") + const storageVolume = localStorage.getItem('volume') if (storageVolume) { this.volume = parseFloat(storageVolume) } diff --git a/client/components/player/PlayerPlaybackControls.vue b/client/components/player/PlayerPlaybackControls.vue index a66e40d6..91bc3be3 100644 --- a/client/components/player/PlayerPlaybackControls.vue +++ b/client/components/player/PlayerPlaybackControls.vue @@ -2,21 +2,21 @@