diff options
| author | bobzel <zzzman@gmail.com> | 2022-11-17 14:35:13 -0500 | 
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2022-11-17 14:35:13 -0500 | 
| commit | b7d4f932d826d48aca4c7c058e05ceaea9c43057 (patch) | |
| tree | 53ca37a39061bb00ecf4f0fb40a26dd10c8035ba /src/client/views/nodes/formattedText/FormattedTextBox.tsx | |
| parent | 30e7fc1b2cb4b5c5f8d5f5e4f808b91e69629245 (diff) | |
mostly changing strings to enums
Diffstat (limited to 'src/client/views/nodes/formattedText/FormattedTextBox.tsx')
| -rw-r--r-- | src/client/views/nodes/formattedText/FormattedTextBox.tsx | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/nodes/formattedText/FormattedTextBox.tsx b/src/client/views/nodes/formattedText/FormattedTextBox.tsx index fdd61463d..ce4639b76 100644 --- a/src/client/views/nodes/formattedText/FormattedTextBox.tsx +++ b/src/client/views/nodes/formattedText/FormattedTextBox.tsx @@ -45,7 +45,7 @@ import { LightboxView } from '../../LightboxView';  import { AnchorMenu } from '../../pdf/AnchorMenu';  import { SidebarAnnos } from '../../SidebarAnnos';  import { StyleProp } from '../../StyleProvider'; -import { DocumentViewInternal } from '../DocumentView'; +import { DocumentViewInternal, OpenWhere } from '../DocumentView';  import { FieldView, FieldViewProps } from '../FieldView';  import { LinkDocPreview } from '../LinkDocPreview';  import { DashDocCommentView } from './DashDocCommentView'; @@ -1428,7 +1428,7 @@ export class FormattedTextBox extends ViewBoxAnnotatableComponent<FieldViewProps                      const func = () => {                          const docView = DocumentManager.Instance.getDocumentView(audiodoc);                          if (!docView) { -                            this.props.addDocTab(audiodoc, 'add:bottom'); +                            this.props.addDocTab(audiodoc, OpenWhere.addBottom);                              setTimeout(func);                          } else docView.ComponentView?.playFrom?.(timecode, Cast(anchor.timecodeToHide, 'number', null)); // bcz: would be nice to find the next audio tag in the doc and play until that                      };  | 
