diff options
| author | bobzel <zzzman@gmail.com> | 2023-09-06 13:53:32 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2023-09-06 13:53:32 -0400 |
| commit | dc92e167391988b63e3ff15e67bcfad6df21c044 (patch) | |
| tree | 39b87daed5b2e56c707f837b54dabc31425697ee /src/client/views/global/globalScripts.ts | |
| parent | 3deba59a1923a6d95c9ba506aad05288911eab42 (diff) | |
fixed up audio annotation to add dictation to sidebar note.
Diffstat (limited to 'src/client/views/global/globalScripts.ts')
| -rw-r--r-- | src/client/views/global/globalScripts.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/global/globalScripts.ts b/src/client/views/global/globalScripts.ts index 38bf1042d..9b9cc6d24 100644 --- a/src/client/views/global/globalScripts.ts +++ b/src/client/views/global/globalScripts.ts @@ -182,8 +182,8 @@ ScriptingGlobals.add(function toggleCharStyle(charStyle: attrname, checkResult?: toggle: () => editorView?.state && RichTextMenu.Instance.changeListType(list) }]); // prettier-ignore const attrs:attrfuncs[] = [ - ['dictation', { checkResult: () => textView?._recording ? true:false, - toggle: () => textView && runInAction(() => (textView._recording = !textView._recording)) }], + ['dictation', { checkResult: () => textView?._recordingDictation ? true:false, + toggle: () => textView && runInAction(() => (textView._recordingDictation = !textView._recordingDictation)) }], ['noAutoLink',{ checkResult: () => (editorView ? RichTextMenu.Instance.noAutoLink : false), toggle: () => editorView && RichTextMenu.Instance?.toggleNoAutoLinkAnchor()}], ['bold', { checkResult: () => (editorView ? RichTextMenu.Instance.bold : (Doc.UserDoc().fontWeight === 'bold') ? true:false), |
