fix node modals
This commit is contained in:
parent
881f7b74e5
commit
cbfac0922a
@ -1380,12 +1380,11 @@ class DNSReconApp {
|
|||||||
|
|
||||||
if (node.incoming_edges && node.incoming_edges.length > 0) {
|
if (node.incoming_edges && node.incoming_edges.length > 0) {
|
||||||
html += `
|
html += `
|
||||||
<div class="section-card relationships-in">
|
<div class="modal-section">
|
||||||
<div class="section-header">
|
<details>
|
||||||
<h4><span class="section-icon">⬅️</span>Source Relationships</h4>
|
<summary>⬅️ Source Relationships (${node.incoming_edges.length})</summary>
|
||||||
<div class="count-badge">${node.incoming_edges.length}</div>
|
<div class="modal-section-content">
|
||||||
</div>
|
<div class="relationship-list">
|
||||||
<div class="relationship-list">
|
|
||||||
`;
|
`;
|
||||||
|
|
||||||
node.incoming_edges.forEach(edge => {
|
node.incoming_edges.forEach(edge => {
|
||||||
@ -1407,17 +1406,16 @@ class DNSReconApp {
|
|||||||
`;
|
`;
|
||||||
});
|
});
|
||||||
|
|
||||||
html += '</div></div>';
|
html += '</div></div></details></div>';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (node.outgoing_edges && node.outgoing_edges.length > 0) {
|
if (node.outgoing_edges && node.outgoing_edges.length > 0) {
|
||||||
html += `
|
html += `
|
||||||
<div class="section-card relationships-out">
|
<div class="modal-section">
|
||||||
<div class="section-header">
|
<details>
|
||||||
<h4><span class="section-icon">➡️</span>Target Relationships</h4>
|
<summary>➡️ Target Relationships (${node.outgoing_edges.length})</summary>
|
||||||
<div class="count-badge">${node.outgoing_edges.length}</div>
|
<div class="modal-section-content">
|
||||||
</div>
|
<div class="relationship-list">
|
||||||
<div class="relationship-list">
|
|
||||||
`;
|
`;
|
||||||
|
|
||||||
node.outgoing_edges.forEach(edge => {
|
node.outgoing_edges.forEach(edge => {
|
||||||
@ -1439,7 +1437,7 @@ class DNSReconApp {
|
|||||||
`;
|
`;
|
||||||
});
|
});
|
||||||
|
|
||||||
html += '</div></div>';
|
html += '</div></div></details></div>';
|
||||||
}
|
}
|
||||||
|
|
||||||
return html;
|
return html;
|
||||||
@ -1674,7 +1672,7 @@ class DNSReconApp {
|
|||||||
if (this.elements.modalTitle) {
|
if (this.elements.modalTitle) {
|
||||||
this.elements.modalTitle.innerHTML = `
|
this.elements.modalTitle.innerHTML = `
|
||||||
<span class="modal-title-icon">${this.getNodeTypeIcon(node.type)}</span>
|
<span class="modal-title-icon">${this.getNodeTypeIcon(node.type)}</span>
|
||||||
<span class="modal-title-text">${this.formatStatus(node.type)} Node</span>
|
<span class="modal-title-text">${node.id}</span>
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user