parent
cd588caa02
commit
d49cf5635b
4 changed files with 25 additions and 2 deletions
|
|
@ -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()
|
||||
})
|
||||
|
|
|
|||
Reference in a new issue