mirror of
https://github.com/go-vikunja/vikunja.git
synced 2025-12-05 19:16:51 -06:00
fix: prevent quick add from opening project
This commit is contained in:
@@ -492,18 +492,17 @@ async function doAction(type: ACTION_TYPE, item: DoAction) {
|
||||
}
|
||||
|
||||
async function doCmd() {
|
||||
if (results.value.length === 1 && results.value[0].items.length === 1) {
|
||||
const result = results.value[0]
|
||||
doAction(result.type, result.items[0])
|
||||
return
|
||||
}
|
||||
if (selectedCmd.value !== null && query.value !== '') {
|
||||
closeQuickActions()
|
||||
await selectedCmd.value.action()
|
||||
return
|
||||
}
|
||||
|
||||
if (selectedCmd.value === null || query.value === '') {
|
||||
return
|
||||
}
|
||||
|
||||
closeQuickActions()
|
||||
await selectedCmd.value.action()
|
||||
if (results.value.length === 1 && results.value[0].items.length === 1) {
|
||||
const result = results.value[0]
|
||||
doAction(result.type, result.items[0])
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
async function newTask() {
|
||||
|
||||
Reference in New Issue
Block a user