fix(quick actions): always search for projects

This commit is contained in:
kolaente 2023-08-29 09:41:53 +02:00
parent 9fc829115f
commit 0ca73e0851
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 9 additions and 7 deletions

View File

@ -22,6 +22,8 @@
<div class="help has-text-grey-light p-2" v-if="hintText !== '' && !isNewTaskCommand">
{{ hintText }}
{{ searchMode }}
</div>
<quick-add-magic class="p-2 modal-container-smaller" v-if="isNewTaskCommand"/>
@ -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<Result[]>(() => {
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'),