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