44-->
55<template >
66 <div class =" cc-input-form" >
7+ <NcNoteCard v-if =" !indexingComplete" type =" warning" >
8+ {{ t('assistant', 'Context Chat has not finished indexing all your documents yet, it may not be able to answer your questions, yet.') }}
9+ </NcNoteCard >
710 <TextInput
811 id =" context_chat_input"
912 :value =" inputs.prompt"
@@ -128,12 +131,14 @@ import NcAvatar from '@nextcloud/vue/dist/Components/NcAvatar.js'
128131import NcButton from ' @nextcloud/vue/dist/Components/NcButton.js'
129132import NcCheckboxRadioSwitch from ' @nextcloud/vue/dist/Components/NcCheckboxRadioSwitch.js'
130133import NcSelect from ' @nextcloud/vue/dist/Components/NcSelect.js'
134+ import NcNoteCard from ' @nextcloud/vue/dist/Components/NcNoteCard.js'
131135
132136import TextInput from ' ../fields/TextInput.vue'
133137
134138import axios from ' @nextcloud/axios'
135139import { getFilePickerBuilder , showError } from ' @nextcloud/dialogs'
136140import { generateUrl } from ' @nextcloud/router'
141+ import { loadState } from ' @nextcloud/initial-state'
137142
138143const _ScopeType = Object .freeze ({
139144 NONE : ' none' ,
@@ -196,6 +201,7 @@ export default {
196201 NcCheckboxRadioSwitch,
197202 NcSelect,
198203 PlaylistRemoveIcon,
204+ NcNoteCard,
199205 },
200206
201207 props: {
@@ -221,6 +227,7 @@ export default {
221227 defaultProviderKey: ' files__default' ,
222228
223229 sccEnabled: !! this .inputs .scopeType && this .inputs .scopeType !== _ScopeType .NONE && !! this .inputs .scopeList ,
230+ indexingComplete: loadState (' assistant' , ' contextChatIndexingComplete' ),
224231 }
225232 },
226233
0 commit comments