Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ips): replacing drop with block #501

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/components/standalone/security/ips/IpsEventList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import {
NeButton,
NeDropdown,
NeDropdownFilter,
NeDropdownItem,
type NeDropdownItem,
NeEmptyState,
NeInlineNotification,
NePaginator,
Expand Down Expand Up @@ -48,7 +48,7 @@ import IpsSuppressAlertDrawer from '@/components/standalone/security/ips/IpsSupp
import type { SuppressedAlert } from '@/components/standalone/security/ips/IpsSuppressedAlerts.vue'
import IpsSnortDocLink from '@/components/standalone/security/ips/IpsSnortDocLink.vue'

type EventType = 'drop' | 'alert' | 'allow'
type EventType = 'block' | 'alert' | 'allow'

type FilterEventType = EventType | 'any'

Expand Down Expand Up @@ -101,8 +101,8 @@ const typeFilterOptions = ref<CustomFilter[]>([
label: t('common.any')
},
{
id: 'drop',
label: t('standalone.ips.drop')
id: 'block',
label: t('standalone.ips.block')
},
{
id: 'alert',
Expand Down Expand Up @@ -297,9 +297,9 @@ function suppressedAlertHandler() {
<FontAwesomeIcon :icon="faArrowRight" class="text-green-500" />
{{ t('standalone.ips.allow') }}
</template>
<template v-else-if="item.action == 'drop'">
<template v-else-if="item.action == 'block'">
<FontAwesomeIcon :icon="faBan" class="text-red-500" />
{{ t('standalone.ips.drop') }}
{{ t('standalone.ips.block') }}
</template>
<template v-else>
<FontAwesomeIcon :icon="faWarning" class="text-amber-700 dark:text-amber-500" />
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -2360,7 +2360,7 @@
"filter_events": "Filter events",
"event_list_date": "Date",
"no_events_found": "No events found",
"drop": "Drop",
"block": "Block",
"alert": "Alert",
"allow": "Allow",
"date": "Date",
Expand Down