aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/InkTranscription.tsx
diff options
context:
space:
mode:
authorZachary Zhang <zacharyzhang7@gmail.com>2024-08-31 00:00:36 -0400
committerZachary Zhang <zacharyzhang7@gmail.com>2024-08-31 00:00:36 -0400
commitbc3b9900c390be9053fa7b32280c940bd4eb4129 (patch)
tree3e6fb2ce267e3d808a3de73392c8b3c14bb98429 /src/client/views/InkTranscription.tsx
parent52cb136c3469e54d3acff77c04d14374c16c4e80 (diff)
commit
Diffstat (limited to 'src/client/views/InkTranscription.tsx')
-rw-r--r--src/client/views/InkTranscription.tsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/views/InkTranscription.tsx b/src/client/views/InkTranscription.tsx
index a7af11463..e66bd9dda 100644
--- a/src/client/views/InkTranscription.tsx
+++ b/src/client/views/InkTranscription.tsx
@@ -271,8 +271,6 @@ export class InkTranscription extends React.Component {
if (this.currGroup && text) {
DocumentView.getDocumentView(this.currGroup)?.ComponentView?.updateIcon?.();
- this.currGroup.transcription = text;
- this.currGroup.title = text;
let image = await this.getIcon();
const pathname = image?.url.href as string;
console.log(image?.url);
@@ -289,10 +287,12 @@ export class InkTranscription extends React.Component {
console.log('bad things have happened');
}
const textBoxText = 'iink: ' + text + '\n' + '\n' + 'ChatGPT: ' + response;
+ this.currGroup.transcription = response;
+ this.currGroup.title = response;
if (!this.currGroup.hasTextBox) {
const newDoc = Docs.Create.TextDocument(textBoxText, { title: '', x: this.currGroup.x as number, y: (this.currGroup.y as number) + (this.currGroup.height as number) });
newDoc.height = 200;
- this.collectionFreeForm?.addDocument(newDoc);
+ //this.collectionFreeForm?.addDocument(newDoc);
this.currGroup.hasTextBox = true;
}
ref.editor.clear();