mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 16:59:12 +00:00
feat(notifications): on update available (#352)
This commit is contained in:
parent
b4589243de
commit
2a3a839081
11 changed files with 326 additions and 18 deletions
|
@ -305,7 +305,7 @@ export const downloadsPerUnitOptions: OptionBasic[] = [
|
|||
export interface SelectOption {
|
||||
label: string;
|
||||
description: string;
|
||||
value: string;
|
||||
value: NotificationEvent;
|
||||
}
|
||||
|
||||
export const EventOptions: SelectOption[] = [
|
||||
|
@ -333,5 +333,10 @@ export const EventOptions: SelectOption[] = [
|
|||
label: "IRC Reconnected",
|
||||
value: "IRC_RECONNECTED",
|
||||
description: "Reconnected to irc network after error"
|
||||
}
|
||||
},
|
||||
{
|
||||
label: "New update",
|
||||
value: "APP_UPDATE_AVAILABLE",
|
||||
description: "Get notified on updates"
|
||||
},
|
||||
];
|
||||
|
|
2
web/src/types/Notification.d.ts
vendored
2
web/src/types/Notification.d.ts
vendored
|
@ -1,5 +1,5 @@
|
|||
type NotificationType = "DISCORD" | "TELEGRAM";
|
||||
type NotificationEvent = "PUSH_APPROVED" | "PUSH_REJECTED" | "PUSH_ERROR" | "IRC_DISCONNECTED" | "IRC_RECONNECTED";
|
||||
type NotificationEvent = "PUSH_APPROVED" | "PUSH_REJECTED" | "PUSH_ERROR" | "IRC_DISCONNECTED" | "IRC_RECONNECTED" | "APP_UPDATE_AVAILABLE";
|
||||
|
||||
interface Notification {
|
||||
id: number;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue