1
0

Show parent list and namespace for tasks in detail views

This commit is contained in:
kolaente
2020-05-09 23:28:54 +02:00
parent 495350fa83
commit c2135338d3
2 changed files with 66 additions and 50 deletions

View File

@ -57,6 +57,19 @@ export default {
}
return null
},
getListAndNamespaceById: state => listId => {
for (const n in state.namespaces) {
for (const l in state.namespaces[n].lists) {
if (state.namespaces[n].lists[l].id === listId) {
return {
list: state.namespaces[n].lists[l],
namespace: state.namespaces[n],
}
}
}
}
return null
},
},
actions: {
loadNamespaces(ctx) {