1
0

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
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()
})