Skip to content

Commit

Permalink
(BEDS-485) notification settings: add has machines flag (#904)
Browse files Browse the repository at this point in the history
  • Loading branch information
LuccaBitfly authored Oct 1, 2024
1 parent d2e22d8 commit 3f347b0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions backend/pkg/api/types/notifications.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ type NotificationSettingsGeneral struct {
type InternalPutUserNotificationSettingsGeneralResponse ApiDataResponse[NotificationSettingsGeneral]
type NotificationSettings struct {
GeneralSettings NotificationSettingsGeneral `json:"general_settings"`
HasMachines bool `json:"has_machines"`
Networks []NotificationNetwork `json:"networks"`
PairedDevices []NotificationPairedDevice `json:"paired_devices"`
Clients []NotificationSettingsClient `json:"clients" faker:"slice_len=10"`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export const useNotificationsManagementStore = defineStore('notifications-manage
rocket_pool_max_collateral_threshold: 0,
rocket_pool_min_collateral_threshold: 0,
},
has_machines: true,
networks: [],
paired_devices: [],
},
Expand Down
1 change: 1 addition & 0 deletions frontend/types/api/notifications.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ export interface NotificationSettingsGeneral {
export type InternalPutUserNotificationSettingsGeneralResponse = ApiDataResponse<NotificationSettingsGeneral>;
export interface NotificationSettings {
general_settings: NotificationSettingsGeneral;
has_machines: boolean;
networks: NotificationNetwork[];
paired_devices: NotificationPairedDevice[];
clients: NotificationSettingsClient[];
Expand Down

0 comments on commit 3f347b0

Please sign in to comment.