Skip to content

Commit

Permalink
Cyber TODO - Cosmetic on UI
Browse files Browse the repository at this point in the history
  • Loading branch information
csavelief committed Sep 8, 2024
1 parent 36b9b2a commit 45b3038
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions resources/views/cyber-todo.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -279,11 +279,19 @@
`;
vulnerabilitiesDiv.appendChild(listItem);
if (vuln.is_scan_in_progress) {
listItem.style.textDecoration = 'line-through';
const checkboxes = document.querySelectorAll(`input[data-asset="${vuln.asset}"]`);
checkboxes.forEach(checkbox => {
checkbox.disabled = true;
});
const levelSpan = listItem.querySelector(".level");
levelSpan.style.display = "none";
const badgeSpan = listItem.querySelector(".badge");
badgeSpan.style.display = "inline-block";
}
});
Expand Down

0 comments on commit 45b3038

Please sign in to comment.