feat: show namespace of related tasks if they are different than the current one (#923)
Co-authored-by: kolaente <k@knt.li> Reviewed-on: https://kolaente.dev/vikunja/frontend/pulls/923 Reviewed-by: dpschen <dpschen@noreply.kolaente.de> Co-authored-by: konrad <k@knt.li> Co-committed-by: konrad <k@knt.li>
This commit is contained in:
@ -76,8 +76,13 @@ export default {
|
||||
},
|
||||
},
|
||||
getters: {
|
||||
getListAndNamespaceById: state => listId => {
|
||||
getListAndNamespaceById: state => (listId, ignorePseudoNamespaces = false) => {
|
||||
for (const n in state.namespaces) {
|
||||
|
||||
if(ignorePseudoNamespaces && state.namespaces[n].id < 0) {
|
||||
continue
|
||||
}
|
||||
|
||||
for (const l in state.namespaces[n].lists) {
|
||||
if (state.namespaces[n].lists[l].id === listId) {
|
||||
return {
|
||||
|
Reference in New Issue
Block a user