Skip to content

Commit

Permalink
Fix AttackPathForm
Browse files Browse the repository at this point in the history
  • Loading branch information
nas-tabchiche committed Dec 9, 2024
1 parent 7f9d0c7 commit 6de8a03
Showing 1 changed file with 11 additions and 13 deletions.
24 changes: 11 additions & 13 deletions frontend/src/lib/components/Forms/ModelForm/AttackPathForm.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -31,20 +31,18 @@
{form}
multiple
options={getOptions({
objects: model.foreignKeys['threats'],
extra_fields: [['folder', 'str']],
label: 'auto'
objects: model.foreignKeys['stakeholders']
})}
field="threats"
cacheLock={cacheLocks['threats']}
bind:cachedValue={formDataCache['threats']}
label={m.threats()}
field="stakeholders"
cacheLock={cacheLocks['stakeholders']}
bind:cachedValue={formDataCache['stakeholders']}
label={m.stakeholders()}
/>
<Select
<Checkbox {form} field="is_selected" label={m.selected()} />
<TextArea
{form}
options={model.selectOptions['likelihood']}
field="likelihood"
label={m.likelihood()}
cacheLock={cacheLocks['likelihood']}
bind:cachedValue={formDataCache['likelihood']}
field="justification"
label={m.justification()}
cacheLock={cacheLocks['justification']}
bind:cachedValue={formDataCache['justification']}
/>

0 comments on commit 6de8a03

Please sign in to comment.