mirror of
https://github.com/immich-app/immich.git
synced 2025-11-02 18:47:07 -05:00
fix(web): prevent photo-only memories showing mute button (#22802)
This commit is contained in:
parent
02beb85642
commit
72f5ca4420
@ -403,16 +403,18 @@
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div class="w-[50px] dark">
|
||||
<IconButton
|
||||
shape="round"
|
||||
variant="ghost"
|
||||
color="secondary"
|
||||
aria-label={$videoViewerMuted ? $t('unmute_memories') : $t('mute_memories')}
|
||||
icon={$videoViewerMuted ? mdiVolumeOff : mdiVolumeHigh}
|
||||
onclick={() => ($videoViewerMuted = !$videoViewerMuted)}
|
||||
/>
|
||||
</div>
|
||||
{#if currentTimelineAssets.some(({ isVideo }) => isVideo)}
|
||||
<div class="w-[50px] dark">
|
||||
<IconButton
|
||||
shape="round"
|
||||
variant="ghost"
|
||||
color="secondary"
|
||||
aria-label={$videoViewerMuted ? $t('unmute_memories') : $t('mute_memories')}
|
||||
icon={$videoViewerMuted ? mdiVolumeOff : mdiVolumeHigh}
|
||||
onclick={() => ($videoViewerMuted = !$videoViewerMuted)}
|
||||
/>
|
||||
</div>
|
||||
{/if}
|
||||
</div>
|
||||
</ControlAppBar>
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user