mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 16:09:16 +02:00
Resolve "Toggle mute in volume bar does not restore previous volume level"
This commit is contained in:
parent
dd766ac853
commit
4a9ae60120
4 changed files with 39 additions and 3 deletions
|
@ -86,13 +86,13 @@
|
|||
v-bind:class="{ active : showVolume }">
|
||||
<i
|
||||
:title="labels.unmute"
|
||||
@click="$store.commit('player/volume', 1)" v-if="volume === 0" class="volume off secondary icon"></i>
|
||||
@click="unmute" v-if="volume === 0" class="volume off secondary icon"></i>
|
||||
<i
|
||||
:title="labels.mute"
|
||||
@click="$store.commit('player/volume', 0)" v-else-if="volume < 0.5" class="volume down secondary icon"></i>
|
||||
@click="mute" v-else-if="volume < 0.5" class="volume down secondary icon"></i>
|
||||
<i
|
||||
:title="labels.mute"
|
||||
@click="$store.commit('player/volume', 0)" v-else class="volume up secondary icon"></i>
|
||||
@click="mute" v-else class="volume up secondary icon"></i>
|
||||
<input
|
||||
type="range"
|
||||
step="0.05"
|
||||
|
@ -202,6 +202,8 @@ export default {
|
|||
methods: {
|
||||
...mapActions({
|
||||
togglePlay: 'player/togglePlay',
|
||||
mute: 'player/mute',
|
||||
unmute: 'player/unmute',
|
||||
clean: 'queue/clean',
|
||||
updateProgress: 'player/updateProgress'
|
||||
}),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue