almost fixed

This commit is contained in:
overcuriousity
2025-09-19 01:10:07 +02:00
parent 0a6d12de9a
commit eabb532557
3 changed files with 63 additions and 58 deletions

View File

@@ -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);
}
}
}

View File

@@ -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);