viewer: allow edits to video metadata

pull/465/head
Varun Patil 2023-03-09 17:11:31 -08:00
parent 44e251d743
commit 6c8ea158c0
1 changed files with 2 additions and 5 deletions

View File

@ -77,7 +77,7 @@
</template> </template>
</NcActionButton> </NcActionButton>
<NcActionButton <NcActionButton
v-if="canEdit" v-if="canEdit && !isVideo"
:aria-label="t('memories', 'Edit')" :aria-label="t('memories', 'Edit')"
@click="openEditor" @click="openEditor"
:close-after-click="true" :close-after-click="true"
@ -336,10 +336,7 @@ export default defineComponent({
/** Show edit buttons */ /** Show edit buttons */
canEdit(): boolean { canEdit(): boolean {
return ( return this.currentPhoto?.imageInfo?.permissions?.includes("U");
this.currentPhoto?.mimetype?.startsWith("image/") &&
this.currentPhoto.imageInfo?.permissions?.includes("U")
);
}, },
/** Show delete button */ /** Show delete button */