diff --git a/frontend/messages/en.json b/frontend/messages/en.json index 1c2c88325..803985aa8 100644 --- a/frontend/messages/en.json +++ b/frontend/messages/en.json @@ -14,6 +14,7 @@ "addDomain": "New domain", "addProject": "New project", "addUser": "New user", + "addPolicy": "New policy", "associatedThreats": "Associated threats", "associatedSecurityFunctions": "Associated security functions", "associatedSecurityMeasures": "Associated security measures", @@ -42,6 +43,7 @@ "securityMeasures": "Security measures", "assets": "Assets", "asset": "Asset", + "policy": "Policy", "policies": "Policies", "riskMatrices": "Risk matrices", "riskAssessments": "Risk assessments", diff --git a/frontend/messages/fr.json b/frontend/messages/fr.json index d8cf2c16d..c0faee951 100644 --- a/frontend/messages/fr.json +++ b/frontend/messages/fr.json @@ -14,6 +14,7 @@ "addDomain": "Ajouter un domaine", "addProject": "Ajouter un projet", "addUser": "Ajouter un utilisateur", + "addPolicy": "Ajouter une politique", "associatedThreats": "Menaces associées", "associatedSecurityFunctions": "Fonctions de sécurité associées", "associatedSecurityMeasures": "Mesures de sécurité associées", @@ -42,6 +43,7 @@ "securityMeasures": "Mesures de sécurité", "assets": "Biens sensibles", "asset": "Bien sensible", + "policy": "Politique", "policies": "Politiques", "riskMatrices": "Matrices de risque", "riskAssessments": "Évaluations de risque", diff --git a/frontend/src/lib/components/Forms/ModelForm.svelte b/frontend/src/lib/components/Forms/ModelForm.svelte index a371870a8..1812ecd9b 100644 --- a/frontend/src/lib/components/Forms/ModelForm.svelte +++ b/frontend/src/lib/components/Forms/ModelForm.svelte @@ -61,7 +61,7 @@ suggestions: suggestions['security_function'] })} field="security_function" - label="Security function" + label={m.securityFunction()} on:change={async (e) => { if (e.detail) { await fetch(`/security-functions/${e.detail}`) diff --git a/frontend/src/lib/components/Forms/Select.svelte b/frontend/src/lib/components/Forms/Select.svelte index 3c0b13da0..ed218b494 100644 --- a/frontend/src/lib/components/Forms/Select.svelte +++ b/frontend/src/lib/components/Forms/Select.svelte @@ -55,8 +55,8 @@ {...$constraints} {...$$restProps} > - {#if !$constraints?.required} - + {#if !$constraints?.required && !options.find((o) => o.label === '--')} + {/if} {#each options as option}