mirror of
https://github.com/immich-app/immich.git
synced 2025-12-18 09:13:15 +03:00
* Fix: enhance face tagging confirmation and fix double label in checkboxes * fix code formatting --------- Co-authored-by: dvbthien <dvbthien@gmail.com>
This commit is contained in:
@@ -279,12 +279,17 @@
|
||||
const data = getFaceCroppedCoordinates();
|
||||
if (!data) {
|
||||
notificationController.show({
|
||||
message: 'Error tagging face - cannot get bounding box coordinates',
|
||||
message: $t('error_tag_face_bounding_box'),
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
const isConfirmed = await modalManager.showDialog({ prompt: `Do you want to tag this face as ${person.name}?` });
|
||||
const isConfirmed = await modalManager.showDialog({
|
||||
prompt: person.name
|
||||
? $t('confirm_tag_face', { values: { name: person.name } })
|
||||
: $t('confirm_tag_face_unnamed'),
|
||||
});
|
||||
|
||||
if (!isConfirmed) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user