fix: schema and form select

This commit is contained in:
charles-gauthereau
2026-06-19 19:20:37 +02:00
parent 27348a3341
commit d651568921
2 changed files with 6 additions and 6 deletions
@@ -59,7 +59,7 @@ export const NotifierPushoverForm = ({form}: NotifierPushoverFormProps) => {
<FormLabel>Message Priority</FormLabel>
<Select onValueChange={field.onChange} value={field.value ?? "0"}>
<FormControl>
<SelectTrigger>
<SelectTrigger className="w-full">
<SelectValue placeholder="Select priority"/>
</SelectTrigger>
</FormControl>
@@ -1,11 +1,11 @@
import {z} from "zod";
export const PUSHOVER_PRIORITIES = [
{value: "-2", label: "Lowest no sound, no vibration, no alert"},
{value: "-1", label: "Low quiet notification, no sound"},
{value: "0", label: "Normal default sound and alert"},
{value: "1", label: "High bypass quiet hours"},
{value: "2", label: "Emergency repeat until acknowledged"},
{value: "-2", label: "Lowest - no sound, no vibration, no alert"},
{value: "-1", label: "Low - quiet notification, no sound"},
{value: "0", label: "Normal - default sound and alert"},
{value: "1", label: "High - bypass quiet hours"},
{value: "2", label: "Emergency - repeat until acknowledged"},
] as const;
export const PushoverChannelConfigSchema = z.object({