aboutsummaryrefslogtreecommitdiff
path: root/src/components/PromptAI.tsx
diff options
context:
space:
mode:
authoromagdy7 <omar.professional8777@gmail.com>2023-11-07 11:09:37 +0200
committeromagdy7 <omar.professional8777@gmail.com>2023-11-07 11:09:37 +0200
commit58863b01677d2f71015defdf437a442275af38f8 (patch)
treecd4011d35f80fc8640888af2a856c261fabcd4d6 /src/components/PromptAI.tsx
parentb8b0805107e5ff312e958d612378305dbb770ac7 (diff)
downloadollama-logseq-58863b01677d2f71015defdf437a442275af38f8.tar.xz
ollama-logseq-58863b01677d2f71015defdf437a442275af38f8.zip
Added some quality of life changes like hitting esc would hide the ui and solved a bug where the UI wouldn't showup after calling summarize and other commands
Diffstat (limited to 'src/components/PromptAI.tsx')
-rw-r--r--src/components/PromptAI.tsx1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/components/PromptAI.tsx b/src/components/PromptAI.tsx
index 0b87917..adae2f9 100644
--- a/src/components/PromptAI.tsx
+++ b/src/components/PromptAI.tsx
@@ -10,6 +10,7 @@ export const PromptAI = ({ type, theme }: { type: string, theme: string }) => {
useEffect(() => {
if (hitEnter) {
+ logseq.hideMainUI()
if (type === 'ask ai') {
askAI(inputValue)
} else if (type === 'define') {