Skip to content

Commit

Permalink
[frontend/backend] Add placeholder for ttp not covered
Browse files Browse the repository at this point in the history
  • Loading branch information
savacano28 committed Dec 25, 2024
1 parent ca56e9e commit 0ccd3b4
Showing 1 changed file with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -616,8 +616,16 @@ const StixCoreObjectSimulationResult = ({ id, type }) => {
{result.attackPatternsWithoutInjectorContracts && result.attackPatternsWithoutInjectorContracts.trim() !== '' && (
<Alert severity="warning" sx={{ marginTop: 2 }}>
{t_i18n('The following TTPs are not covered in your OpenBAS catalog : ')}
{result.attackPatternsWithoutInjectorContracts}
<br />
<ul
style={{
columnCount: Math.min(Math.ceil(result.attackPatternsWithoutInjectorContracts.split(',').length / 10), 20),
paddingLeft: 20,
}}
>
{result.attackPatternsWithoutInjectorContracts.split(',').map((ttp, index) => (
<li key={index}>{ttp}</li>
))}
</ul>
{t_i18n('In response, we have created placeholders for these TTPs.')}
</Alert>
)}
Expand Down

0 comments on commit 0ccd3b4

Please sign in to comment.