viewer: hide controls on public share
parent
139136d3c0
commit
2dc38dee26
|
@ -20,15 +20,16 @@
|
|||
container=".memories_viewer .pswp"
|
||||
>
|
||||
<NcActionButton
|
||||
v-if="canShare"
|
||||
:aria-label="t('memories', 'Share')"
|
||||
@click="shareCurrent"
|
||||
:close-after-click="true"
|
||||
v-if="canShare"
|
||||
>
|
||||
{{ t("memories", "Share") }}
|
||||
<template #icon> <ShareIcon :size="24" /> </template>
|
||||
</NcActionButton>
|
||||
<NcActionButton
|
||||
v-if="!routeIsPublic"
|
||||
:aria-label="t('memories', 'Delete')"
|
||||
@click="deleteCurrent"
|
||||
:close-after-click="true"
|
||||
|
@ -37,6 +38,7 @@
|
|||
<template #icon> <DeleteIcon :size="24" /> </template>
|
||||
</NcActionButton>
|
||||
<NcActionButton
|
||||
v-if="!routeIsPublic"
|
||||
:aria-label="t('memories', 'Favorite')"
|
||||
@click="favoriteCurrent"
|
||||
:close-after-click="true"
|
||||
|
@ -48,6 +50,7 @@
|
|||
</template>
|
||||
</NcActionButton>
|
||||
<NcActionButton
|
||||
v-if="!routeIsPublic"
|
||||
:aria-label="t('memories', 'Sidebar')"
|
||||
@click="toggleSidebar"
|
||||
:close-after-click="true"
|
||||
|
@ -58,8 +61,8 @@
|
|||
</template>
|
||||
</NcActionButton>
|
||||
<NcActionButton
|
||||
v-if="canEdit && !routeIsPublic"
|
||||
:aria-label="t('memories', 'Edit')"
|
||||
v-if="canEdit"
|
||||
@click="openEditor"
|
||||
:close-after-click="true"
|
||||
>
|
||||
|
@ -79,6 +82,7 @@
|
|||
</template>
|
||||
</NcActionButton>
|
||||
<NcActionButton
|
||||
v-if="!routeIsPublic"
|
||||
:aria-label="t('memories', 'View in folder')"
|
||||
@click="viewInFolder"
|
||||
:close-after-click="true"
|
||||
|
@ -195,6 +199,11 @@ export default class Viewer extends Mixins(GlobalMixin) {
|
|||
}
|
||||
}
|
||||
|
||||
/** Route is public */
|
||||
get routeIsPublic() {
|
||||
return this.$route.name === "folder-share";
|
||||
}
|
||||
|
||||
/** Update the document title */
|
||||
private updateTitle(photo: IPhoto | undefined) {
|
||||
if (!this.originalTitle) {
|
||||
|
|
Loading…
Reference in New Issue