mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-19 10:26:17 +00:00
fix: after delete people photo, can not remove (#7269)
* fix: after delete people photo, can not remove * feat: add translate --------- Co-authored-by: 杨国璇 <ygx@Hello-word.local>
This commit is contained in:
@@ -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
|
||||
|
@@ -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]);
|
||||
|
Reference in New Issue
Block a user