style: made changes to the translations
This commit is contained in:
parent
c9676e17a7
commit
77fb1f2cdb
|
|
@ -2,7 +2,7 @@ export default {
|
||||||
chatbot: {
|
chatbot: {
|
||||||
chat_header: "AI Assistant",
|
chat_header: "AI Assistant",
|
||||||
chat_initial_message:
|
chat_initial_message:
|
||||||
"Welcome to your technical assistant.\nPlease provide the Client ID and \na description of the problem.",
|
"Welcome to your technical assistant.\nPlease provide the Customer ID to get a diagnostic report",
|
||||||
chat_placeholder: "Enter a Message",
|
chat_placeholder: "Enter a Message",
|
||||||
chat_thinking: "Thinking...",
|
chat_thinking: "Thinking...",
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ export default {
|
||||||
chatbot: {
|
chatbot: {
|
||||||
chat_header: "Agent IA",
|
chat_header: "Agent IA",
|
||||||
chat_initial_message:
|
chat_initial_message:
|
||||||
"Bienvenue à votre assistant technique.\nVeuillez fournir le ID du Client et \nune description du problème.",
|
"Bienvenue à votre assistant technique.\nVeuillez fournir le ID du Client pour avoir un diagnostique",
|
||||||
chat_placeholder: "Entré un Message",
|
chat_placeholder: "Entré un Message",
|
||||||
chat_thinking: "Réflexion en cours...",
|
chat_thinking: "Réflexion en cours...",
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -139,6 +139,14 @@ watch([currentContext, userEmail, userRole], async ([ctx, email, role]) => {
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
const custId = ref('')
|
||||||
|
const handleCustomerId = async () => {
|
||||||
|
const cId = custId.value;
|
||||||
|
custId.value = '';
|
||||||
|
await chatbotService.retrieveCustomerDiagnostics(cId);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
@ -174,6 +182,14 @@ watch([currentContext, userEmail, userRole], async ([ctx, email, role]) => {
|
||||||
style="margin-left: 8px;"
|
style="margin-left: 8px;"
|
||||||
@keyup.enter="handleSend"
|
@keyup.enter="handleSend"
|
||||||
/>
|
/>
|
||||||
|
<q-input
|
||||||
|
v-model="custId"
|
||||||
|
:label="'Customer Id'"
|
||||||
|
:autogrow="false"
|
||||||
|
class="col"
|
||||||
|
style="margin-left: 8px;"
|
||||||
|
@keyup.enter="handleCustomerId"
|
||||||
|
/>
|
||||||
</q-form>
|
</q-form>
|
||||||
<div
|
<div
|
||||||
class="drag-handle"
|
class="drag-handle"
|
||||||
|
|
|
||||||
|
|
@ -24,4 +24,10 @@ export const chatbotService = {
|
||||||
const response = await api.post("/chat/user", { email, role });
|
const response = await api.post("/chat/user", { email, role });
|
||||||
return response.data;
|
return response.data;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
retrieveCustomerDiagnostics: async (id: string): Promise<string> => {
|
||||||
|
console.log("Frontend Service id retreived");
|
||||||
|
const response = await api.get(`/chat/customer/${id}`);
|
||||||
|
return response.data;
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user