mirror of
https://github.com/Portabase/portabase.git
synced 2026-07-14 11:16:13 +02:00
fix: schema and form select
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user