feat(pushover): add support for all priority levels
Add lowest (-2) and emergency (2) priority options to the Pushover notification form. Previously only low, normal, and high were available.
This commit is contained in:
parent
c69615b3b6
commit
b0c73ece9f
2 changed files with 3 additions and 1 deletions
|
|
@ -71,9 +71,11 @@ export const PushoverForm = ({ form }: Props) => {
|
||||||
</SelectTrigger>
|
</SelectTrigger>
|
||||||
</FormControl>
|
</FormControl>
|
||||||
<SelectContent>
|
<SelectContent>
|
||||||
|
<SelectItem value="-2">Lowest (-2)</SelectItem>
|
||||||
<SelectItem value="-1">Low (-1)</SelectItem>
|
<SelectItem value="-1">Low (-1)</SelectItem>
|
||||||
<SelectItem value="0">Normal (0)</SelectItem>
|
<SelectItem value="0">Normal (0)</SelectItem>
|
||||||
<SelectItem value="1">High (1)</SelectItem>
|
<SelectItem value="1">High (1)</SelectItem>
|
||||||
|
<SelectItem value="2">Emergency (2)</SelectItem>
|
||||||
</SelectContent>
|
</SelectContent>
|
||||||
</Select>
|
</Select>
|
||||||
<FormDescription>Message priority level.</FormDescription>
|
<FormDescription>Message priority level.</FormDescription>
|
||||||
|
|
|
||||||
|
|
@ -64,7 +64,7 @@ export const pushoverNotificationConfigSchema = type({
|
||||||
userKey: "string",
|
userKey: "string",
|
||||||
apiToken: "string",
|
apiToken: "string",
|
||||||
devices: "string?",
|
devices: "string?",
|
||||||
priority: "-1 | 0 | 1",
|
priority: "-2 | -1 | 0 | 1 | 2",
|
||||||
});
|
});
|
||||||
|
|
||||||
export const telegramNotificationConfigSchema = type({
|
export const telegramNotificationConfigSchema = type({
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue