Skip to content

Commit 3f347b0

Browse files
authored
(BEDS-485) notification settings: add has machines flag (#904)
1 parent d2e22d8 commit 3f347b0

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

backend/pkg/api/types/notifications.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ type NotificationSettingsGeneral struct {
194194
type InternalPutUserNotificationSettingsGeneralResponse ApiDataResponse[NotificationSettingsGeneral]
195195
type NotificationSettings struct {
196196
GeneralSettings NotificationSettingsGeneral `json:"general_settings"`
197+
HasMachines bool `json:"has_machines"`
197198
Networks []NotificationNetwork `json:"networks"`
198199
PairedDevices []NotificationPairedDevice `json:"paired_devices"`
199200
Clients []NotificationSettingsClient `json:"clients" faker:"slice_len=10"`

frontend/stores/notifications/useNotificationsManagementStore.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ export const useNotificationsManagementStore = defineStore('notifications-manage
3030
rocket_pool_max_collateral_threshold: 0,
3131
rocket_pool_min_collateral_threshold: 0,
3232
},
33+
has_machines: true,
3334
networks: [],
3435
paired_devices: [],
3536
},

frontend/types/api/notifications.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ export interface NotificationSettingsGeneral {
184184
export type InternalPutUserNotificationSettingsGeneralResponse = ApiDataResponse<NotificationSettingsGeneral>;
185185
export interface NotificationSettings {
186186
general_settings: NotificationSettingsGeneral;
187+
has_machines: boolean;
187188
networks: NotificationNetwork[];
188189
paired_devices: NotificationPairedDevice[];
189190
clients: NotificationSettingsClient[];

0 commit comments

Comments
 (0)