From 15500253365f1c6caa1cb3afdba41dff7dd30096 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Mierzwa?= Date: Sat, 1 Sep 2018 10:17:38 +0100 Subject: [PATCH] fix(ui): don't hardcode matchers --- ui/src/Components/Grid/AlertGrid/AlertGroup/Silence/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/src/Components/Grid/AlertGrid/AlertGroup/Silence/index.js b/ui/src/Components/Grid/AlertGrid/AlertGroup/Silence/index.js index 4a5975376..e546a1280 100644 --- a/ui/src/Components/Grid/AlertGrid/AlertGroup/Silence/index.js +++ b/ui/src/Components/Grid/AlertGrid/AlertGroup/Silence/index.js @@ -14,7 +14,7 @@ import { faExternalLinkAlt } from "@fortawesome/free-solid-svg-icons/faExternalL import { faChevronUp } from "@fortawesome/free-solid-svg-icons/faChevronUp"; import { faChevronDown } from "@fortawesome/free-solid-svg-icons/faChevronDown"; -import { StaticLabels } from "Common/Query"; +import { StaticLabels, QueryOperators } from "Common/Query"; import { FilteringLabel } from "Components/Labels/FilteringLabel"; import "./index.css"; @@ -114,7 +114,7 @@ const SilenceDetails = ({ alertmanager, silence }) => { className="badge badge-success text-nowrap text-truncate px-1 mr-1" > {matcher.name} - {matcher.isRegex ? "=~" : "="} + {matcher.isRegex ? QueryOperators.Regex : QueryOperators.Equal} {matcher.value} ))}