diff options
author | bobzel <zzzman@gmail.com> | 2024-08-26 23:49:35 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2024-08-26 23:49:35 -0400 |
commit | 5180a22ad70cb79ff2167a3aa0a63962ec6b0319 (patch) | |
tree | 50486ecc2d79ba1bbbe23211fc4e4c93933e5005 /src | |
parent | ef5a8b8261052c3079f267d1d8d0804a495e3e3d (diff) |
made face annotation titles editable to edit face doc.
Diffstat (limited to 'src')
-rw-r--r-- | src/client/views/search/FaceRecognitionHandler.tsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/views/search/FaceRecognitionHandler.tsx b/src/client/views/search/FaceRecognitionHandler.tsx index 4906ba4b6..0cee7184c 100644 --- a/src/client/views/search/FaceRecognitionHandler.tsx +++ b/src/client/views/search/FaceRecognitionHandler.tsx @@ -177,7 +177,7 @@ export class FaceRecognitionHandler { dashboard[DocData].myUniqueFaces_count = faceDocNum; // TODO: improve to a better name const uniqueFaceDoc = Docs.Create.UniqeFaceDocument({ - title: ComputedField.MakeFunction('this.face') as unknown as string, + title: ComputedField.MakeFunction('this.face', undefined, undefined, 'this.face = value') as unknown as string, _layout_reflowHorizontal: true, _layout_reflowVertical: true, _layout_nativeDimEditable: true, @@ -258,9 +258,9 @@ export class FaceRecognitionHandler { FaceRecognitionHandler.UniqueFaceAddFaceImage(imgDoc, faceDescriptor, matchedUniqueFace); // add image/faceDescriptor to matched unique face annos.push( Docs.Create.FreeformDocument([], { - title: ComputedField.MakeFunction(`this.face.face`) as unknown as string, // + title: ComputedField.MakeFunction(`this.face.face`, undefined, undefined, 'this.face.face = value') as unknown as string, // annotationOn: imgDoc, - face: matchedUniqueFace, + face: matchedUniqueFace[DocData], backgroundColor: '#55555555', x: fd.alignedRect.box.left * scale, y: fd.alignedRect.box.top * scale, |