almost fixed
This commit is contained in:
@@ -1565,14 +1565,20 @@ class GraphManager {
|
||||
}
|
||||
|
||||
/**
|
||||
* Unhide all hidden nodes
|
||||
* Unhide all hidden nodes, excluding those within a large entity.
|
||||
*/
|
||||
unhideAll() {
|
||||
const allNodes = this.nodes.get({
|
||||
filter: (node) => node.hidden === true
|
||||
const allHiddenNodes = this.nodes.get({
|
||||
filter: (node) => {
|
||||
// Condition: Node is hidden AND it is NOT part of a large entity.
|
||||
return node.hidden === true && !(node.metadata && node.metadata.large_entity_id);
|
||||
}
|
||||
});
|
||||
const updates = allNodes.map(node => ({ id: node.id, hidden: false }));
|
||||
this.nodes.update(updates);
|
||||
|
||||
if (allHiddenNodes.length > 0) {
|
||||
const updates = allHiddenNodes.map(node => ({ id: node.id, hidden: false }));
|
||||
this.nodes.update(updates);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1997,8 +1997,6 @@ class DNSReconApp {
|
||||
if (response.success) {
|
||||
this.showSuccess(response.message);
|
||||
|
||||
this.hideModal();
|
||||
|
||||
// If the scanner was idle, it's now running. Start polling to see the new node appear.
|
||||
if (this.scanStatus === 'idle') {
|
||||
this.startPolling(1000);
|
||||
|
||||
Reference in New Issue
Block a user