Skip to content

Commit

Permalink
Ca 746 clicking on the box of the filter closes it it should only clo…
Browse files Browse the repository at this point in the history
…se when clicking outside the box (#1304)
  • Loading branch information
Mohamed-Hacene authored Jan 3, 2025
2 parents 670be9f + c2bc28b commit 1d47630
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions backend/core/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,14 +360,14 @@ def __init__(self, old_library: Type["LoadedLibrary"], new_library: StoredLibrar
*old_library.risk_matrices.all(),
]
self.new_library = new_library
library_content = json.loads(self.new_library.content)
new_library_content = json.loads(self.new_library.content)
self.dependencies = self.new_library.dependencies
if self.dependencies is None:
self.dependencies = []
self.new_framework = library_content.get("framework")
self.new_matrices = library_content.get("risk_matrix")
self.threats = library_content.get("threats", [])
self.reference_controls = library_content.get("reference_controls", [])
self.new_framework = new_library_content.get("framework")
self.new_matrices = new_library_content.get("risk_matrix")
self.threats = new_library_content.get("threats", [])
self.reference_controls = new_library_content.get("reference_controls", [])
self.new_objects = {obj["urn"].lower(): obj for obj in self.threats}
self.new_objects.update(
{obj["urn"].lower(): obj for obj in self.reference_controls}
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/lib/components/ModelTable/ModelTable.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -224,10 +224,10 @@
import Anchor from '$lib/components/Anchor/Anchor.svelte';
const popupFilter: PopupSettings = {
event: 'click',
event: 'focus-click',
target: 'popupFilter',
placement: 'bottom-start',
closeQuery: 'a[href]'
closeQuery: 'li'
};
$: classesHexBackgroundText = (backgroundHexColor: string) => {
Expand Down

0 comments on commit 1d47630

Please sign in to comment.