mitre-attack / attack-navigator

Web app that provides basic navigation and annotation of ATT&CK matrices
https://mitre-attack.github.io/attack-navigator
Apache License 2.0
2.01k stars 593 forks source link

Maximum layers allowed. #553

Closed pablo97dr closed 1 year ago

pablo97dr commented 1 year ago

Is there any way to have more than 10 layers opened at the same time?

imagen

After creating the 10th layer, the "add" button disappears.

imagen

clemiller commented 1 year ago

Hi @pablo97dr,

The maximum number of tabs is hardcoded to 10 to avoid performance issues caused by having a large number of layers open at once. Many improvements have been made to the Navigator since then, so it's likely the lagging wouldn't be as extreme at this point. However, we don't currently have plans to increase this number on our live instance. If you are hosting Navigator locally and would like to increase the maximum number of tabs, you can modify the code directly here: *ngIf="layerTabs.length < 10" on this line https://github.com/mitre-attack/attack-navigator/blob/master/nav-app/src/app/tabs/tabs.component.html#L44.