Skip to content

Commit 946ac69

Browse files
authored
[frontend]Correct scenario notifications update form(#3479)
1 parent 90275ff commit 946ac69

File tree

5 files changed

+5
-1
lines changed

5 files changed

+5
-1
lines changed

openbas-front/src/admin/components/scenarios/scenario/notification_rule/NotificationRuleForm.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ const NotificationRuleForm: FunctionComponent<Props> = ({
9696
onClick={edition ? handleOpenDelete : handleClose}
9797
style={{ marginRight: theme.spacing(1) }}
9898
disabled={isSubmitting}
99+
color={edition ? 'error' : 'primary'}
99100
>
100101
{edition ? t('Delete') : t('Cancel')}
101102
</Button>

openbas-front/src/admin/components/scenarios/scenario/notification_rule/ScenarioNotificationRulesDrawer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ const ScenarioNotificationRulesDrawer: FunctionComponent<Props> = ({
8686
<Drawer
8787
open={open}
8888
handleClose={() => setOpen(false)}
89-
title={t('Create a notification rule')}
89+
title={editing ? t('Update a notification rule') : t('Create a notification rule')}
9090
>
9191
{
9292
editing

openbas-front/src/utils/lang/en.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1575,6 +1575,7 @@
15751575
"UNVERIFIED": "Unverified",
15761576
"Unverified": "Unverified",
15771577
"Update": "Update",
1578+
"Update a notification rule": "Update a notification rule",
15781579
"Update an endpoint": "Update an endpoint",
15791580
"Update inject comment": "Update inject comment",
15801581
"Update objects": "Update objects",

openbas-front/src/utils/lang/fr.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1575,6 +1575,7 @@
15751575
"UNVERIFIED": "Unverified",
15761576
"Unverified": "Non vérifié",
15771577
"Update": "Modifier",
1578+
"Update a notification rule": "Mise à jour d'une règle de notification",
15781579
"Update an endpoint": "Mise à jour d'un endpoint",
15791580
"Update inject comment": "Modifier le commentaire du stimuli",
15801581
"Update objects": "Mettre à jour les objets",

openbas-front/src/utils/lang/zh.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1575,6 +1575,7 @@
15751575
"UNVERIFIED": "未验证",
15761576
"Unverified": "未驗證",
15771577
"Update": "更新",
1578+
"Update a notification rule": "更新通知规则",
15781579
"Update an endpoint": "更新端点",
15791580
"Update inject comment": "编辑刺激评论",
15801581
"Update objects": "更新对象",

0 commit comments

Comments
 (0)