From 01bd594118f306d959ec3493428f80c709f9c9df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C5=BEe=20Fortun?= Date: Fri, 1 Mar 2024 12:08:37 +0100 Subject: [PATCH] Fix CInputSelect not emiting loading on search --- .../workflow/src/components/Configurator/ExecWorkflow.vue | 4 ++++ .../web/workflow/src/components/Configurator/Function.vue | 2 +- lib/vue/src/components/input/CInputSelect.vue | 6 +++++- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/client/web/workflow/src/components/Configurator/ExecWorkflow.vue b/client/web/workflow/src/components/Configurator/ExecWorkflow.vue index 2d29b7729..115bc4659 100644 --- a/client/web/workflow/src/components/Configurator/ExecWorkflow.vue +++ b/client/web/workflow/src/components/Configurator/ExecWorkflow.vue @@ -66,6 +66,10 @@ export default { getWorkflowLabel ({ workflowID, handle, meta = {} }) { return meta.name || handle || workflowID }, + + getWorkflowKey ({ workflowID, handle }) { + return handle || workflowID + }, }, } diff --git a/client/web/workflow/src/components/Configurator/Function.vue b/client/web/workflow/src/components/Configurator/Function.vue index 9fb331863..a5887c7d4 100644 --- a/client/web/workflow/src/components/Configurator/Function.vue +++ b/client/web/workflow/src/components/Configurator/Function.vue @@ -126,7 +126,7 @@ v-model="a.value" :options="workflowOptions" :get-option-label="getWorkflowLabel" - :get-option-key="getOptionWorkflowKey" + :get-option-key="getWorkflowKey" :reduce="wf => a.type === 'ID' ? wf.workflowID : wf.handle" :placeholder="$t('steps:function.configurator.search-workflow')" @input="$root.$emit('change-detected')" diff --git a/lib/vue/src/components/input/CInputSelect.vue b/lib/vue/src/components/input/CInputSelect.vue index 8425c5e93..165c2f56c 100644 --- a/lib/vue/src/components/input/CInputSelect.vue +++ b/lib/vue/src/components/input/CInputSelect.vue @@ -10,7 +10,7 @@ :append-to-body="appendToBody" class="bg-white rounded" :class="sizeClass" - @search="($event) => $emit('search', $event)" + @search="onSearch" >