From 0ca73e0851822517ed3e588a07e01d8fe2c1c1b1 Mon Sep 17 00:00:00 2001 From: kolaente Date: Tue, 29 Aug 2023 09:41:53 +0200 Subject: [PATCH] fix(quick actions): always search for projects --- src/components/quick-actions/quick-actions.vue | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/components/quick-actions/quick-actions.vue b/src/components/quick-actions/quick-actions.vue index 5b4098e72..5c078a6e3 100644 --- a/src/components/quick-actions/quick-actions.vue +++ b/src/components/quick-actions/quick-actions.vue @@ -22,6 +22,8 @@
{{ hintText }} + + {{ searchMode }}
@@ -137,11 +139,11 @@ function closeQuickActions() { } const foundProjects = computed(() => { - const {project} = parsedQuery.value + const {project, text} = parsedQuery.value if ( searchMode.value === SEARCH_MODE.ALL || searchMode.value === SEARCH_MODE.PROJECTS || - project === null + text === '' ) { return [] } @@ -175,16 +177,16 @@ const results = computed(() => { title: t('quickActions.commands'), items: foundCommands.value, }, - { - type: ACTION_TYPE.TASK, - title: t('quickActions.tasks'), - items: foundTasks.value, - }, { type: ACTION_TYPE.PROJECT, title: t('quickActions.projects'), items: foundProjects.value, }, + { + type: ACTION_TYPE.TASK, + title: t('quickActions.tasks'), + items: foundTasks.value, + }, { type: ACTION_TYPE.TEAM, title: t('quickActions.teams'),