diff options
| author | bobzel <zzzman@gmail.com> | 2024-08-26 22:25:58 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2024-08-26 22:25:58 -0400 |
| commit | f0d9731e1c43ee13114d42db8c4e27c94bbbf3c0 (patch) | |
| tree | ee5e462ad5e9499f62d51cabf0779ea84077f451 /src/client/views/collections/collectionFreeForm/FaceCollectionBox.tsx | |
| parent | b1e88ebc95cb7cdd18b8ba42bb267bcd9372154a (diff) | |
made face doc labels editable
Diffstat (limited to 'src/client/views/collections/collectionFreeForm/FaceCollectionBox.tsx')
| -rw-r--r-- | src/client/views/collections/collectionFreeForm/FaceCollectionBox.tsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/client/views/collections/collectionFreeForm/FaceCollectionBox.tsx b/src/client/views/collections/collectionFreeForm/FaceCollectionBox.tsx index 662436ddc..7e47292e5 100644 --- a/src/client/views/collections/collectionFreeForm/FaceCollectionBox.tsx +++ b/src/client/views/collections/collectionFreeForm/FaceCollectionBox.tsx @@ -149,7 +149,9 @@ export class UniqueFaceBox extends ViewBoxBaseComponent<FieldViewProps>() { <IconButton tooltip="Delete Face From Collection" onPointerDown={this.deleteUniqueFace} icon={'x'} style={{ width: '4px' }} size={Size.XSMALL} /> </div> <div className="face-document-top" ref={action((r: HTMLDivElement | null) => (this._headerRef = r))}> - <h1 style={{ color: lightOrDark(StrCast(this.Document.backgroundColor)) }}>{FaceRecognitionHandler.UniqueFaceLabel(this.Document)}</h1> + <h1 style={{ color: lightOrDark(StrCast(this.Document.backgroundColor)) }}> + <input className="face-document-name" type="text" onChange={e => FaceRecognitionHandler.SetUniqueFaceLabel(this.Document, e.currentTarget.value)} value={FaceRecognitionHandler.UniqueFaceLabel(this.Document)} /> + </h1> </div> <div className="face-collection-toggle"> <IconButton |
