Show parent list and namespace for tasks in detail views
This commit is contained in:
parent
495350fa83
commit
c2135338d3
2 changed files with 66 additions and 50 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Reference in a new issue