mirror of
https://github.com/go-vikunja/vikunja.git
synced 2026-03-11 17:48:44 -05:00
fix(quick actions): quote label when it contains spaces (#1013)
fix(frontend): quote label search with spaces
This commit is contained in:
@@ -484,7 +484,11 @@ async function doAction(type: ACTION_TYPE, item: DoAction) {
|
||||
searchInput.value?.focus()
|
||||
break
|
||||
case ACTION_TYPE.LABELS:
|
||||
query.value = '*' + item.title
|
||||
if (/\s/.test(item.title)) {
|
||||
query.value = '*"' + item.title + '"'
|
||||
} else {
|
||||
query.value = '*' + item.title
|
||||
}
|
||||
searchInput.value?.focus()
|
||||
searchTasks()
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user