mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
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:
committed by
Akshay Joshi
parent
0f92f54452
commit
9e3165c0ff
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user