mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fixed 'Save' button issue where dialog is not getting closed.
This commit is contained in:
parent
1569be7866
commit
7b6101bc6d
@ -177,6 +177,12 @@ export class Tree {
|
|||||||
await this.tree.closeDirectory(item);
|
await this.tree.closeDirectory(item);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
async setId(item, data) {
|
||||||
|
if(item) {
|
||||||
|
item.getMetadata('data').id = data.id;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
deselect(item) {
|
deselect(item) {
|
||||||
this.tree.deSelectActiveFile(item);
|
this.tree.deSelectActiveFile(item);
|
||||||
}
|
}
|
||||||
@ -240,7 +246,7 @@ export class Tree {
|
|||||||
if (this.hasParent(item)) {
|
if (this.hasParent(item)) {
|
||||||
let _siblings = this.parent(item).children.filter((_item) => _item.path !== item.path);
|
let _siblings = this.parent(item).children.filter((_item) => _item.path !== item.path);
|
||||||
if (typeof(_siblings) !== 'object') return [_siblings];
|
if (typeof(_siblings) !== 'object') return [_siblings];
|
||||||
else _siblings;
|
else return _siblings;
|
||||||
}
|
}
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user