diff --git a/src/layout/AppTopbar.vue b/src/layout/AppTopbar.vue index 7629cdf..d75228e 100644 --- a/src/layout/AppTopbar.vue +++ b/src/layout/AppTopbar.vue @@ -90,7 +90,7 @@ watch(() => userPrefStore.getSelApp, appUpdated, { immediate: true });
- - {{ error }} - - + + + + {{ error }} + + + @@ -142,4 +143,12 @@ const login = async () => { /* Ensures the logo scales nicely within the circle */ display: block; } + +.error-message { + display: flex; + justify-content: center; + align-items: center; + text-align: center; + width: 100%; /* Ensure the message takes the full width of its container */ +} diff --git a/src/views/pages/ksDocuments/KsDocuments.vue b/src/views/pages/ksDocuments/KsDocuments.vue index ac52e14..3a30fcf 100644 --- a/src/views/pages/ksDocuments/KsDocuments.vue +++ b/src/views/pages/ksDocuments/KsDocuments.vue @@ -147,6 +147,7 @@ const filters = ref(); const userPrefStore = UserPrefStore(); const ksDocumentStore = KsDocumentStore(); const loadingStore = LoadingStore(); +const fe_status = ref(""); const initFilters = () => { filters.value = { @@ -328,11 +329,11 @@ const startIndividualngestion = (id) => { } if (response.data.status == "ERROR") { toast.add({ severity: 'error', summary: 'Success', detail: 'Error ingesting document:' + response.data.message, life: 3000 }); - fe_status = "ERROR" + fe_status.value = "ERROR" } ksdocuments.value.forEach(element => { if (element.id == id) { - element.ingestionStatus = fe_status + element.ingestionStatus = fe_status.value console.log("Updated element", element) } }); diff --git a/src/views/pages/ksDocuments/KsNewDocumentForm.vue b/src/views/pages/ksDocuments/KsNewDocumentForm.vue index b6e9ca1..f97f798 100644 --- a/src/views/pages/ksDocuments/KsNewDocumentForm.vue +++ b/src/views/pages/ksDocuments/KsNewDocumentForm.vue @@ -19,7 +19,7 @@
-