fix: Quick tips banner incorrectly states 0 disables alerts, should be -1

The Quick tips banner on the Alerts page said "Set any threshold to 0" but
the actual code uses -1 to disable alerts. The tooltips on individual fields
were correct; only the top-of-page banner was wrong.

Related to #843
This commit is contained in:
rcourtman 2025-12-14 19:08:24 +00:00
parent ae70020290
commit 40b272bb24

View file

@ -2200,7 +2200,7 @@ export function ThresholdsTable(props: ThresholdsTableProps) {
<div class="text-sm text-blue-900 dark:text-blue-100">
<span class="font-medium">Quick tips:</span> Set any threshold to{' '}
<code class="px-1 py-0.5 bg-blue-100 dark:bg-blue-900/50 rounded text-xs font-mono">
0
-1
</code>{' '}
to disable alerts for that metric. Click on disabled thresholds showing{' '}
<span class="italic">Off</span> to re-enable them. Resources with custom settings show a{' '}