4
4
-->
5
5
<template >
6
6
<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 >
7
10
<TextInput
8
11
id =" context_chat_input"
9
12
:value =" inputs.prompt"
@@ -128,12 +131,14 @@ import NcAvatar from '@nextcloud/vue/dist/Components/NcAvatar.js'
128
131
import NcButton from ' @nextcloud/vue/dist/Components/NcButton.js'
129
132
import NcCheckboxRadioSwitch from ' @nextcloud/vue/dist/Components/NcCheckboxRadioSwitch.js'
130
133
import NcSelect from ' @nextcloud/vue/dist/Components/NcSelect.js'
134
+ import NcNoteCard from ' @nextcloud/vue/dist/Components/NcNoteCard.js'
131
135
132
136
import TextInput from ' ../fields/TextInput.vue'
133
137
134
138
import axios from ' @nextcloud/axios'
135
139
import { getFilePickerBuilder , showError } from ' @nextcloud/dialogs'
136
140
import { generateUrl } from ' @nextcloud/router'
141
+ import { loadState } from ' @nextcloud/initial-state'
137
142
138
143
const _ScopeType = Object .freeze ({
139
144
NONE : ' none' ,
@@ -196,6 +201,7 @@ export default {
196
201
NcCheckboxRadioSwitch,
197
202
NcSelect,
198
203
PlaylistRemoveIcon,
204
+ NcNoteCard,
199
205
},
200
206
201
207
props: {
@@ -221,6 +227,7 @@ export default {
221
227
defaultProviderKey: ' files__default' ,
222
228
223
229
sccEnabled: !! this .inputs .scopeType && this .inputs .scopeType !== _ScopeType .NONE && !! this .inputs .scopeList ,
230
+ indexingComplete: loadState (' assistant' , ' contextChatIndexingComplete' ),
224
231
}
225
232
},
226
233
0 commit comments