first commit
This commit is contained in:
@@ -184,7 +184,7 @@ const isQuickRepliesVisible = computed(() => {
|
||||
if (activeForm.value !== null) return false;
|
||||
if (isConfirmationActive.value) return false;
|
||||
if (isWebSearchEnabled.value) return false;
|
||||
if (pendingConfirmationFormId.value !== null) return false;
|
||||
if (pendingConfirmationFormId.value !== null) return false;
|
||||
return true;
|
||||
});
|
||||
|
||||
@@ -405,14 +405,14 @@ const handleMultiFormResponse = (userResponse) => {
|
||||
|
||||
const form = forms[activeMultiForm.value];
|
||||
const currentStep = form.steps[currentFormStep.value];
|
||||
|
||||
|
||||
multiFormData.value[currentStep.id] = userResponse;
|
||||
|
||||
if (pendingConfirmationFormId.value) {
|
||||
confirmationData.value = { ...confirmationData.value, ...multiFormData.value };
|
||||
|
||||
return {
|
||||
completed: true,
|
||||
|
||||
return {
|
||||
completed: true,
|
||||
data: confirmationData.value,
|
||||
showConfirmationAgain: true
|
||||
};
|
||||
@@ -686,7 +686,7 @@ const handleConfirmation = (confirmed, message) => {
|
||||
} else {
|
||||
showConfirmation.value = false;
|
||||
showStepSelection.value = true;
|
||||
|
||||
|
||||
messageQueue.value.push({
|
||||
sender: "bot",
|
||||
type: "step-selection",
|
||||
@@ -733,7 +733,7 @@ const handleMultiFormOptionClick = (stepId, option) => {
|
||||
|
||||
if (formResponse.completed) {
|
||||
const form = forms[activeMultiForm.value];
|
||||
|
||||
|
||||
if (formResponse.showConfirmationAgain) {
|
||||
messageQueue.value.push({
|
||||
sender: "bot",
|
||||
|
||||
Reference in New Issue
Block a user