fix(quick actions): always search for projects
This commit is contained in:
parent
9fc829115f
commit
0ca73e0851
@ -22,6 +22,8 @@
|
|||||||
|
|
||||||
<div class="help has-text-grey-light p-2" v-if="hintText !== '' && !isNewTaskCommand">
|
<div class="help has-text-grey-light p-2" v-if="hintText !== '' && !isNewTaskCommand">
|
||||||
{{ hintText }}
|
{{ hintText }}
|
||||||
|
|
||||||
|
{{ searchMode }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<quick-add-magic class="p-2 modal-container-smaller" v-if="isNewTaskCommand"/>
|
<quick-add-magic class="p-2 modal-container-smaller" v-if="isNewTaskCommand"/>
|
||||||
@ -137,11 +139,11 @@ function closeQuickActions() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const foundProjects = computed(() => {
|
const foundProjects = computed(() => {
|
||||||
const {project} = parsedQuery.value
|
const {project, text} = parsedQuery.value
|
||||||
if (
|
if (
|
||||||
searchMode.value === SEARCH_MODE.ALL ||
|
searchMode.value === SEARCH_MODE.ALL ||
|
||||||
searchMode.value === SEARCH_MODE.PROJECTS ||
|
searchMode.value === SEARCH_MODE.PROJECTS ||
|
||||||
project === null
|
text === ''
|
||||||
) {
|
) {
|
||||||
return []
|
return []
|
||||||
}
|
}
|
||||||
@ -175,16 +177,16 @@ const results = computed<Result[]>(() => {
|
|||||||
title: t('quickActions.commands'),
|
title: t('quickActions.commands'),
|
||||||
items: foundCommands.value,
|
items: foundCommands.value,
|
||||||
},
|
},
|
||||||
{
|
|
||||||
type: ACTION_TYPE.TASK,
|
|
||||||
title: t('quickActions.tasks'),
|
|
||||||
items: foundTasks.value,
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
type: ACTION_TYPE.PROJECT,
|
type: ACTION_TYPE.PROJECT,
|
||||||
title: t('quickActions.projects'),
|
title: t('quickActions.projects'),
|
||||||
items: foundProjects.value,
|
items: foundProjects.value,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
type: ACTION_TYPE.TASK,
|
||||||
|
title: t('quickActions.tasks'),
|
||||||
|
items: foundTasks.value,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
type: ACTION_TYPE.TEAM,
|
type: ACTION_TYPE.TEAM,
|
||||||
title: t('quickActions.teams'),
|
title: t('quickActions.teams'),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user