viewer: allow metadata edits to live photos
parent
a553e8f122
commit
679d83863e
|
@ -338,7 +338,6 @@ export default defineComponent({
|
||||||
canEdit(): boolean {
|
canEdit(): boolean {
|
||||||
return (
|
return (
|
||||||
this.currentPhoto?.mimetype?.startsWith("image/") &&
|
this.currentPhoto?.mimetype?.startsWith("image/") &&
|
||||||
!this.currentPhoto.liveid &&
|
|
||||||
this.currentPhoto.imageInfo?.permissions?.includes("U")
|
this.currentPhoto.imageInfo?.permissions?.includes("U")
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
@ -861,6 +860,15 @@ export default defineComponent({
|
||||||
openEditor() {
|
openEditor() {
|
||||||
// Only for JPEG for now
|
// Only for JPEG for now
|
||||||
if (!this.canEdit) return;
|
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;
|
this.editorOpen = true;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue