diff --git a/backend/pkg/api/types/notifications.go b/backend/pkg/api/types/notifications.go index bb5fdb8e0..d67bbdaed 100644 --- a/backend/pkg/api/types/notifications.go +++ b/backend/pkg/api/types/notifications.go @@ -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"` diff --git a/frontend/stores/notifications/useNotificationsManagementStore.ts b/frontend/stores/notifications/useNotificationsManagementStore.ts index bf6838ff7..cea154e3a 100644 --- a/frontend/stores/notifications/useNotificationsManagementStore.ts +++ b/frontend/stores/notifications/useNotificationsManagementStore.ts @@ -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: [], }, diff --git a/frontend/types/api/notifications.ts b/frontend/types/api/notifications.ts index 0a3b47725..c798f1d00 100644 --- a/frontend/types/api/notifications.ts +++ b/frontend/types/api/notifications.ts @@ -184,6 +184,7 @@ export interface NotificationSettingsGeneral { export type InternalPutUserNotificationSettingsGeneralResponse = ApiDataResponse; export interface NotificationSettings { general_settings: NotificationSettingsGeneral; + has_machines: boolean; networks: NotificationNetwork[]; paired_devices: NotificationPairedDevice[]; clients: NotificationSettingsClient[];