Skip to content

Commit

Permalink
Disable risk_matrix and framework fields for existing assessments
Browse files Browse the repository at this point in the history
  • Loading branch information
nas-tabchiche committed May 7, 2024
1 parent 6d0d550 commit 5fda273
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions frontend/src/lib/components/Forms/ModelForm.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@
<Select {form} options={model.selectOptions['status']} field="status" label={m.status()} />
<AutocompleteSelect
{form}
disabled={object.id}
options={getOptions({ objects: model.foreignKeys['risk_matrix'] })}
field="risk_matrix"
label={m.riskMatrix()}
Expand Down Expand Up @@ -329,6 +330,7 @@
<Select {form} options={model.selectOptions['status']} field="status" label={m.status()} />
<AutocompleteSelect
{form}
disabled={object.id}
options={getOptions({ objects: model.foreignKeys['framework'] })}
field="framework"
label={m.framework()}
Expand Down

0 comments on commit 5fda273

Please sign in to comment.