fix(web): enhance face tagging confirmation and fix #18605 (#18610)

* 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:
Xuan Binh 2025-05-26 02:34:12 +07:00 committed by GitHub
parent c4df96bd72
commit d22fb2d5db
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 12 additions and 8 deletions

View file

@ -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;
}