Skip to content

Commit

Permalink
Merge pull request #1502 from akto-api-security/feature/threat_module…
Browse files Browse the repository at this point in the history
…_nav

show threat module in UI
  • Loading branch information
notshivansh authored Sep 17, 2024
2 parents 72edc59 + a8ba201 commit 60c1c67
Showing 1 changed file with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -154,18 +154,18 @@ export default function LeftNav(){
selected: leftNavSelected === 'dashboard_issues',
key: '6',
},
// TO BE ENABLED LATER.
// {
// label: <Text variant="bodyMd" fontWeight="medium">Threat Detection</Text>,
// icon: DiamondAlertMinor,
// onClick: ()=>{
// handleSelect("dashboard_threat_detection")
// navigate("/dashboard/threat-detection")
// setActive("normal")
// },
// selected: leftNavSelected === 'dashboard_threat_detection',
// key: '7',
// },
window?.STIGG_FEATURE_WISE_ALLOWED?.THREAT_DETECTION?.isGranted ?
{
label: <Text variant="bodyMd" fontWeight="medium">API Threat Detection</Text>,
icon: DiamondAlertMinor,
onClick: () => {
handleSelect("dashboard_threat_detection")
navigate("/dashboard/threat-detection")
setActive("normal")
},
selected: leftNavSelected === 'dashboard_threat_detection',
key: '7',
} : {}
]}
/>
<Navigation.Section
Expand Down

0 comments on commit 60c1c67

Please sign in to comment.