mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-24 20:36:40 +07:00
notifications: added boris notifications
This commit is contained in:
parent
d56bfe968d
commit
2ecda12513
13 changed files with 61 additions and 22 deletions
|
@ -8,6 +8,7 @@ export const notificationSettingsFromRequest = (
|
|||
): NotificationSettings => ({
|
||||
enabled: req.enabled,
|
||||
flow: req.flow,
|
||||
boris: req.boris,
|
||||
comments: req.comments,
|
||||
sendTelegram: req.send_telegram,
|
||||
showIndicator: req.show_indicator,
|
||||
|
@ -20,6 +21,7 @@ export const notificationSettingsToRequest = (
|
|||
): ApiUpdateNotificationSettingsRequest => ({
|
||||
enabled: req.enabled,
|
||||
flow: req.flow,
|
||||
boris: req.boris,
|
||||
comments: req.comments,
|
||||
send_telegram: req.sendTelegram,
|
||||
show_indicator: req.showIndicator,
|
||||
|
|
|
@ -14,6 +14,7 @@ const defaultValue = {
|
|||
toggleEnabled: () => {},
|
||||
markAsRead: () => {},
|
||||
refresh: () => Promise.resolve() as Promise<unknown>,
|
||||
lastSeen: null as Date | null | undefined,
|
||||
};
|
||||
|
||||
const NotificationContext = createContext(defaultValue);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue