Skip to content

Commit

Permalink
fix: after delete people photo, can not remove (#7269)
Browse files Browse the repository at this point in the history
* fix: after delete people photo, can not remove

* feat: add translate

---------

Co-authored-by: 杨国璇 <[email protected]>
  • Loading branch information
YangGuoXuan-0503 and 杨国璇 authored Dec 27, 2024
1 parent 10ae44f commit c5bafec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions frontend/src/metadata/store/operations/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ export const LOCAL_APPLY_OPERATION_TYPE = [
OPERATION_TYPE.MODIFY_COLUMN_WIDTH,
OPERATION_TYPE.MODIFY_LOCAL_RECORD,
OPERATION_TYPE.MODIFY_LOCAL_COLUMN_DATA,
OPERATION_TYPE.DELETE_PEOPLE_PHOTOS,
];

// apply operation after exec operation on the server
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/metadata/views/gallery/context-menu/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const GalleryContextMenu = ({ metadata, selectedImages, onDelete, onDuplicate, a
validOptions.push({ value: CONTEXT_MENU_KEY.DUPLICATE, label: gettext('Duplicate') });
}
if (canRemovePhotoFromPeople) {
validOptions.push({ value: CONTEXT_MENU_KEY.REMOVE, label: 'Remove from this group' });
validOptions.push({ value: CONTEXT_MENU_KEY.REMOVE, label: gettext('Remove from this group') });
}
return validOptions;
}, [checkCanDeleteRow, canDuplicateRow, canRemovePhotoFromPeople, selectedImages]);
Expand Down

0 comments on commit c5bafec

Please sign in to comment.