1
0

Show the list of a related task if it belongs to a different list

This commit is contained in:
kolaente
2020-05-09 19:33:37 +02:00
parent 2d59b0a1b0
commit 48df1a44e8
3 changed files with 21 additions and 1 deletions

View File

@ -46,6 +46,18 @@ export default {
}
},
},
getters: {
getListById: state => id => {
for (const n in state.namespaces) {
for (const l in state.namespaces[n].lists) {
if (state.namespaces[n].lists[l].id === id) {
return state.namespaces[n].lists[l]
}
}
}
return null
},
},
actions: {
loadNamespaces(ctx) {
const namespaceService = new NamespaceService()