Skip to content

Commit

Permalink
ux: add folder scope in applied controls/evidences select
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohamed-Hacene committed Oct 8, 2024
1 parent 6034e60 commit c0cdda8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@
<AutocompleteSelect
multiple
{form}
options={getOptions({ objects: data.model.foreignKeys['applied_controls'] })}
options={getOptions({ objects: data.model.foreignKeys['applied_controls'], extra_fields: [['folder', 'str']] })}
field="applied_controls"
/>
<ModelTable
Expand Down Expand Up @@ -457,7 +457,7 @@
<AutocompleteSelect
multiple
{form}
options={getOptions({ objects: data.model.foreignKeys['evidences'] })}
options={getOptions({ objects: data.model.foreignKeys['evidences'], extra_fields: [['folder', 'str']] })}
field="evidences"
/>
<ModelTable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@
<AutocompleteSelect
multiple
{form}
options={getOptions({ objects: data.foreignKeys['applied_controls'] })}
options={getOptions({ objects: data.foreignKeys['applied_controls'], extra_fields: [['folder', 'str']] })}
field="applied_controls"
label={m.appliedControls()}
/>
Expand Down

0 comments on commit c0cdda8

Please sign in to comment.