From ab3074fdee44103424a58577f5c81c9d2436fc68 Mon Sep 17 00:00:00 2001 From: Paul Frazee Date: Thu, 4 May 2023 00:55:33 -0500 Subject: Add the !filter and !warn imperative labels (#580) --- src/lib/labeling/helpers.ts | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/lib/labeling/helpers.ts') diff --git a/src/lib/labeling/helpers.ts b/src/lib/labeling/helpers.ts index 5ec591cfb..71ea43c08 100644 --- a/src/lib/labeling/helpers.ts +++ b/src/lib/labeling/helpers.ts @@ -8,6 +8,8 @@ import { import { CONFIGURABLE_LABEL_GROUPS, ILLEGAL_LABEL_GROUP, + ALWAYS_FILTER_LABEL_GROUP, + ALWAYS_WARN_LABEL_GROUP, UNKNOWN_LABEL_GROUP, } from './const' import { @@ -34,6 +36,12 @@ export function getLabelValueGroup(labelVal: string): LabelValGroup { if (ILLEGAL_LABEL_GROUP.values.includes(labelVal)) { return ILLEGAL_LABEL_GROUP } + if (ALWAYS_FILTER_LABEL_GROUP.values.includes(labelVal)) { + return ALWAYS_FILTER_LABEL_GROUP + } + if (ALWAYS_WARN_LABEL_GROUP.values.includes(labelVal)) { + return ALWAYS_WARN_LABEL_GROUP + } if (CONFIGURABLE_LABEL_GROUPS[id].values.includes(labelVal)) { return CONFIGURABLE_LABEL_GROUPS[id] } -- cgit 1.4.1