Namespace selection for users, reports and report-templates
This commit is contained in:
parent
4822a50d0b
commit
e7bdfb7745
16 changed files with 210 additions and 62 deletions
|
@ -49,14 +49,14 @@ router.getAsync('/namespaces-tree', passport.loggedIn, async (req, res) => {
|
|||
entry = entries[row.id];
|
||||
}
|
||||
|
||||
if (row.parent) {
|
||||
if (!entries[row.parent]) {
|
||||
entries[row.parent] = {
|
||||
if (row.namespace) {
|
||||
if (!entries[row.namespace]) {
|
||||
entries[row.namespace] = {
|
||||
children: []
|
||||
};
|
||||
}
|
||||
|
||||
entries[row.parent].children.push(entry);
|
||||
entries[row.namespace].children.push(entry);
|
||||
|
||||
} else {
|
||||
root = entry;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue