viewer: hide slideshow if single item

Signed-off-by: Varun Patil <radialapps@gmail.com>
pull/767/head
Varun Patil 2023-08-03 21:53:25 -07:00
parent 123ce4dfb3
commit dfc7f76c10
1 changed files with 6 additions and 1 deletions

View File

@ -119,7 +119,12 @@
<OpenInNewIcon :size="24" />
</template>
</NcActionButton>
<NcActionButton :aria-label="t('memories', 'Slideshow')" @click="startSlideshow" :close-after-click="true">
<NcActionButton
:aria-label="t('memories', 'Slideshow')"
v-if="globalCount > 1"
@click="startSlideshow"
:close-after-click="true"
>
{{ t('memories', 'Slideshow') }}
<template #icon>
<SlideshowIcon :size="24" />