Show namespace name in list search field

Resolves #169
This commit is contained in:
kolaente 2020-06-27 23:12:33 +02:00
parent cd588caa02
commit d49cf5635b
Signed by untrusted user who does not match committer: konrad
GPG key ID: F40E70337AB24C9B
4 changed files with 25 additions and 2 deletions

View file

@ -60,6 +60,14 @@ export default {
}
return null
},
getNamespaceById: state => namespaceId => {
for (const n in state.namespaces) {
if (state.namespaces[n].id === namespaceId) {
return state.namespaces[n]
}
}
return null
},
},
actions: {
loadNamespaces(ctx) {
@ -77,7 +85,7 @@ export default {
})
})
ctx.commit('lists/addLists', lists, {root:true})
ctx.commit('lists/addLists', lists, {root: true})
return Promise.resolve()
})