Skip to content

Commit

Permalink
Display ThreatType on Information Page
Browse files Browse the repository at this point in the history
  • Loading branch information
JawedCIA committed Jun 11, 2023
1 parent d147ac4 commit 6f8508e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,6 @@ pcapengine/.vs/*.json
/Documentation/PS.ps1
/Arkthor/Core/.idea/*
/Arkthor/Core/.vscode/*
/Arkthor/Core/.vs/Core/FileContentIndex
/Arkthor/Core/.vs/Core/v17
/Arkthor/Core/.vs
7 changes: 5 additions & 2 deletions Arkthor/Front/Source/ArkThor.UI/wwwroot/theme/MD/js/CSCD.js
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,10 @@ function displayFileRecordInformation(resultResponse) {
//Set Threat Type
if (!(resultResponse.threatType == undefined || resultResponse.threatType == null || resultResponse.threatType == "")) {
let threatType = resultResponse.threatType.toUpperCase();
setValue("ddThreatTypeIdentified", threatType);
// setValueinnerHTML("ddThreatTypeIdentified", threatType.replace(/,/g, "<br>- "));
let ddThreatTypeIdentifiedElement = document.getElementById("ddThreatTypeIdentified");
ddThreatTypeIdentifiedElement.innerHTML = "- " + threatType.replace(/,/g, "<br>- ");

if (threatType.includes(", ")) {
threatType = getHighestConfidenceLevelThreatType(threatType);
// console.log("Highest Threat Type: " + threatType);
Expand Down Expand Up @@ -1119,7 +1122,7 @@ function displayLiveTrackingOnBoard(response) {

if ((response.status).toUpperCase() == 'DONE') { divinfo_box.className = 'callout callout-success info-box' }
else if ((response.status).toUpperCase() == 'QUEUED') { divinfo_box.className = 'callout callout-warning info-box'; iConStatus.className = 'fa fa-hourglass'; }
else if ((response.status).toUpperCase() == 'REMOVED' || (response.status).toUpperCase() == 'CANCELLED') { divinfo_box.className = 'callout callout-danger info-box'; iConStatus.className = 'icon fas fa-ban'; }
else if ((response.status).toUpperCase() == 'REMOVED' || (response.status).toUpperCase() == 'CANCELLED' || (response.status).toUpperCase() == 'FAILURE') { divinfo_box.className = 'callout callout-danger info-box'; iConStatus.className = 'icon fas fa-ban'; }
else if ((response.status).toUpperCase() == 'INPROGRESS') { divinfo_box.className = 'callout callout-info info-box'; iConStatus.className = 'fa fa-cog fa-spin fa-2x fa-fw'; }
else { divinfo_box.className = 'callout callout-danger info-box' }
}
Expand Down

0 comments on commit 6f8508e

Please sign in to comment.