viewer: allow edits to video metadata
parent
44e251d743
commit
6c8ea158c0
|
@ -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 */
|
||||||
|
|
Loading…
Reference in New Issue