Skip to content

Commit

Permalink
hide ReplayGain toggle when not available
Browse files Browse the repository at this point in the history
  • Loading branch information
tamland committed Dec 29, 2024
1 parent 5564317 commit 7f1132f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/player/Player.vue
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,11 @@
:value="volume" @input="setVolume"
/>
</b-popover>
<b-button title="ReplayGain"
variant="link" class="m-0"
@click="toggleReplayGain">
<b-button
v-if="track && track.replayGain"
title="ReplayGain"
variant="link" class="m-0"
@click="toggleReplayGain">
<IconReplayGain v-if="replayGainMode === ReplayGainMode.None" />
<IconReplayGainTrack v-else-if="replayGainMode === ReplayGainMode.Track" />
<IconReplayGainAlbum v-else-if="replayGainMode === ReplayGainMode.Album" />
Expand Down

0 comments on commit 7f1132f

Please # to comment.