1) Ensure that the master password should be prompt when MASTER_PASSWORD_REQUIRED

is set to True and AUTHENTICATION_SOURCES is the webserver. Fixes #6928
2) Fixed an issue where the existing server group is disappeared on rename it. Fixes #6930
This commit is contained in:
Khushboo Vashi
2021-10-19 11:56:44 +05:30
committed by Akshay Joshi
parent 0f92f54452
commit 9e3165c0ff
4 changed files with 13 additions and 4 deletions

View File

@@ -205,11 +205,11 @@ export class Tree {
first(item) {
const model = this.tree.getModel();
if (item === undefined || item === null) {
if ((item === undefined || item === null) && model.root.children !== null) {
return model.root.children[0];
}
if (item.branchSize > 0) {
if (item !== undefined && item !== null && item.branchSize > 0) {
return item.children[0];
}
@@ -285,6 +285,11 @@ export class Tree {
return (item !== undefined && item.getMetadata('data') !== undefined) ? item._metadata.data : [];
}
isRootNode(item) {
const model = this.tree.getModel();
return item === model.root;
}
isInode(item) {
const children = this.children(item);
if (children === null || children === undefined) return false;