diff --git a/lib/Listener/BeforeTemplateRenderedListener.php b/lib/Listener/BeforeTemplateRenderedListener.php index 0c09d4cc..4e966e30 100644 --- a/lib/Listener/BeforeTemplateRenderedListener.php +++ b/lib/Listener/BeforeTemplateRenderedListener.php @@ -61,6 +61,8 @@ public function handle(Event $event): void { if ($assistantEnabled) { $lastTargetLanguage = $this->config->getUserValue($this->userId, Application::APP_ID, 'last_target_language', ''); $this->initialStateService->provideInitialState('last-target-language', $lastTargetLanguage); + $indexingComplete = $this->appConfig->getValueInt('context_chat', 'last_indexed_time', 0) !== 0; + $this->initialStateService->provideInitialState('contextChatIndexingComplete', $indexingComplete); } Util::addScript(Application::APP_ID, Application::APP_ID . '-main'); } diff --git a/src/components/ContextChat/ContextChatInputForm.vue b/src/components/ContextChat/ContextChatInputForm.vue index f32dd5c0..b59307e0 100644 --- a/src/components/ContextChat/ContextChatInputForm.vue +++ b/src/components/ContextChat/ContextChatInputForm.vue @@ -4,6 +4,9 @@ -->