From 1e195485633ddf4c9c74334fe91f590e0d076190 Mon Sep 17 00:00:00 2001 From: kolaente Date: Tue, 29 Aug 2023 09:33:56 +0200 Subject: [PATCH] chore(quick actions): format --- src/components/quick-actions/quick-actions.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/components/quick-actions/quick-actions.vue b/src/components/quick-actions/quick-actions.vue index 2b19c8b12..f3922a30d 100644 --- a/src/components/quick-actions/quick-actions.vue +++ b/src/components/quick-actions/quick-actions.vue @@ -265,10 +265,12 @@ const searchMode = computed(() => { if (query.value === '') { return SEARCH_MODE.ALL } + const {text, project, labels, assignees} = parsedQuery.value if (assignees.length === 0 && text !== '') { return SEARCH_MODE.TASKS } + if ( assignees.length === 0 && project !== null && @@ -277,6 +279,7 @@ const searchMode = computed(() => { ) { return SEARCH_MODE.PROJECTS } + if ( assignees.length > 0 && project === null && @@ -285,6 +288,7 @@ const searchMode = computed(() => { ) { return SEARCH_MODE.TEAMS } + return SEARCH_MODE.ALL })