diff --git a/backend/ebios_rm/views.py b/backend/ebios_rm/views.py index 84aabb891..3ba883a4b 100644 --- a/backend/ebios_rm/views.py +++ b/backend/ebios_rm/views.py @@ -78,7 +78,7 @@ class AttackPathViewSet(BaseModelViewSet): class OperationalScenarioViewSet(BaseModelViewSet): model = OperationalScenario - + filterset_fields = [ "ebios_rm_study", ] diff --git a/frontend/src/lib/components/Forms/ModelForm/OperationalScenarioForm.svelte b/frontend/src/lib/components/Forms/ModelForm/OperationalScenarioForm.svelte index 1f7e8425e..7399f740a 100644 --- a/frontend/src/lib/components/Forms/ModelForm/OperationalScenarioForm.svelte +++ b/frontend/src/lib/components/Forms/ModelForm/OperationalScenarioForm.svelte @@ -26,10 +26,11 @@ = { diff --git a/frontend/src/lib/utils/table.ts b/frontend/src/lib/utils/table.ts index 4b8c5d807..83bb0ebdd 100644 --- a/frontend/src/lib/utils/table.ts +++ b/frontend/src/lib/utils/table.ts @@ -556,6 +556,6 @@ export const listViewFields: ListViewFieldsConfig = { }, 'operational-scenarios': { head: ['description', 'threats', 'likelihood'], - body: ['description', 'threats', 'likelihood'], + body: ['description', 'threats', 'likelihood'] } }; diff --git a/frontend/src/routes/(app)/(internal)/ebios-rm/[id=uuid]/+page.svelte b/frontend/src/routes/(app)/(internal)/ebios-rm/[id=uuid]/+page.svelte index 8eb6ad70b..fdda99e68 100644 --- a/frontend/src/routes/(app)/(internal)/ebios-rm/[id=uuid]/+page.svelte +++ b/frontend/src/routes/(app)/(internal)/ebios-rm/[id=uuid]/+page.svelte @@ -56,8 +56,16 @@ { title: safeTranslate(m.ebiosWs3_3()), status: 'done', href: '#' } ], ws4: [ - { title: safeTranslate(m.ebiosWs4_1()), status: 'to_do', href: `${$page.url.pathname}/workshop-four/operational-scenario?next=${$page.url.pathname}` }, - { title: safeTranslate(m.ebiosWs4_2()), status: 'to_do', href: `${$page.url.pathname}/workshop-four/operational-scenario?next=${$page.url.pathname}` } + { + title: safeTranslate(m.ebiosWs4_1()), + status: 'to_do', + href: `${$page.url.pathname}/workshop-four/operational-scenario?next=${$page.url.pathname}` + }, + { + title: safeTranslate(m.ebiosWs4_2()), + status: 'to_do', + href: `${$page.url.pathname}/workshop-four/operational-scenario?next=${$page.url.pathname}` + } ], ws5: [ { title: safeTranslate(m.ebiosWs5_1()), status: 'done', href: '#' },