viewer: allow metadata edits to live photos

pull/465/head
Varun Patil 2023-03-09 17:00:30 -08:00
parent a553e8f122
commit 679d83863e
1 changed files with 9 additions and 1 deletions

View File

@ -338,7 +338,6 @@ export default defineComponent({
canEdit(): boolean {
return (
this.currentPhoto?.mimetype?.startsWith("image/") &&
!this.currentPhoto.liveid &&
this.currentPhoto.imageInfo?.permissions?.includes("U")
);
},
@ -861,6 +860,15 @@ export default defineComponent({
openEditor() {
// Only for JPEG for now
if (!this.canEdit) return;
// Prevent editing live photos
if (this.currentPhoto.liveid) {
alert(
this.t("memories", "Editing is currently disabled for live photos")
);
return;
}
this.editorOpen = true;
},