Show list title when searching for tasks
continuous-integration/drone/pr Build is passing Details

This commit is contained in:
kolaente 2021-05-30 18:06:53 +02:00
parent 1020f56f17
commit d706a5d8cc
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 5 additions and 0 deletions

View File

@ -222,6 +222,11 @@ export default {
.then(r => {
r = r.map(t => {
t.type = TYPE_TASK
const list = this.$store.getters['lists/getListById'](t.listId) === null ? null : this.$store.getters['lists/getListById'](t.listId)
if (list !== null) {
t.title = `${t.title} (${list.title})`
}
return t
})
this.$set(this, 'foundTasks', r)