From 62eb520f5a5d19c745cdb5312bb53f2d69bd47e5 Mon Sep 17 00:00:00 2001 From: Matej Minar Date: Thu, 18 Apr 2024 12:24:47 +0200 Subject: [PATCH] fix(ddm): Add message to the block metric confirm modal --- .../settings/projectMetrics/projectMetricsDetails.tsx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/static/app/views/settings/projectMetrics/projectMetricsDetails.tsx b/static/app/views/settings/projectMetrics/projectMetricsDetails.tsx index 39ff8cc47a915f..52c9ec091ca3e3 100644 --- a/static/app/views/settings/projectMetrics/projectMetricsDetails.tsx +++ b/static/app/views/settings/projectMetrics/projectMetricsDetails.tsx @@ -136,6 +136,13 @@ function ProjectMetricsDetails({project, params, organization}: Props) { isBlocked={isBlockedMetric} onConfirm={handleMetricBlockToggle} aria-label={t('Block Metric')} + message={ + isBlockedMetric + ? t('Are you sure you want to unblock this metric?') + : t( + 'Are you sure you want to block this metric? It will no longer be ingested, and will not be available for use in Metrics, Alerts, or Dashboards.' + ) + } />