aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2024-03-30 10:37:46 -0400
committerbobzel <zzzman@gmail.com>2024-03-30 10:37:46 -0400
commit7b35667de4d9ae367e902d42733fc561f8c4c6a7 (patch)
tree9322434074c70fa7992e021b408c4734b2314d7c /src
parentccbe6cafa422616ec4ffe5c2d1caed7597719007 (diff)
open audio dictation in sidebar
Diffstat (limited to 'src')
-rw-r--r--src/client/views/nodes/AudioBox.tsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/views/nodes/AudioBox.tsx b/src/client/views/nodes/AudioBox.tsx
index 8a38ef663..e84f0ed06 100644
--- a/src/client/views/nodes/AudioBox.tsx
+++ b/src/client/views/nodes/AudioBox.tsx
@@ -22,6 +22,7 @@ import { ViewBoxAnnotatableComponent } from '../DocComponent';
import './AudioBox.scss';
import { FocusViewOptions, FieldView, FieldViewProps } from './FieldView';
import { PinProps, PresBox } from './trails';
+import { OpenWhere } from './DocumentView';
/**
* AudioBox
@@ -383,7 +384,7 @@ export class AudioBox extends ViewBoxAnnotatableComponent<FieldViewProps>() {
newDoc.overlayY = NumCast(this.Document.y) + NumCast(this.layoutDoc._height);
Doc.AddToMyOverlay(newDoc);
} else {
- this._props.addDocument?.(newDoc);
+ this._props.addDocTab(newDoc, OpenWhere.addRight);
}
}),
false