viewer: hide album button for local

Signed-off-by: Varun Patil <radialapps@gmail.com>
pull/767/head
Varun Patil 2023-08-02 19:30:17 -07:00
parent c231e48df9
commit 4d31385927
1 changed files with 2 additions and 2 deletions

View File

@ -138,7 +138,7 @@
</NcActionButton> </NcActionButton>
<NcActionButton <NcActionButton
:aria-label="t('memories', 'Add to album')" :aria-label="t('memories', 'Add to album')"
v-if="config.albums_enabled && canShare" v-if="config.albums_enabled && !isLocal && canShare"
@click="updateAlbums" @click="updateAlbums"
:close-after-click="true" :close-after-click="true"
> >
@ -360,7 +360,7 @@ export default defineComponent({
return this.currentPhoto?.imageInfo?.permissions?.includes('D') ?? false; return this.currentPhoto?.imageInfo?.permissions?.includes('D') ?? false;
}, },
/** Show share button */ /** Show share button and add to album button */
canShare(): boolean { canShare(): boolean {
return Boolean(this.currentPhoto); return Boolean(this.currentPhoto);
}, },