From a025375c90dd025ad407c177772fef5ea0f20484 Mon Sep 17 00:00:00 2001 From: benji-bitfly Date: Tue, 1 Oct 2024 14:14:32 +0200 Subject: [PATCH] refactor: adapt for `api` changes --- .../notifications/NotificationsRocketPoolTable.vue | 8 -------- frontend/components/playground/PlaygroundDialog.vue | 4 ++++ .../notifications/useNotificationsManagementStore.ts | 5 ----- 3 files changed, 4 insertions(+), 13 deletions(-) diff --git a/frontend/components/notifications/NotificationsRocketPoolTable.vue b/frontend/components/notifications/NotificationsRocketPoolTable.vue index 7529f839d..00ee0388a 100644 --- a/frontend/components/notifications/NotificationsRocketPoolTable.vue +++ b/frontend/components/notifications/NotificationsRocketPoolTable.vue @@ -16,8 +16,6 @@ const { setSearch, } = useNotificationsRocketpoolStore() -const { overview } = useNotificationsDashboardOverviewStore() - const { width } = useWindowSize() const colsVisible = computed(() => { return { @@ -118,12 +116,6 @@ const getEventTypeName = (eventType: NotificationRocketPoolTableRow['event_type' @open-dialog="$emit('openDialog')" /> - diff --git a/frontend/components/playground/PlaygroundDialog.vue b/frontend/components/playground/PlaygroundDialog.vue index b9d2c3c35..a5746f24a 100644 --- a/frontend/components/playground/PlaygroundDialog.vue +++ b/frontend/components/playground/PlaygroundDialog.vue @@ -35,6 +35,8 @@ const validatorSub: NotificationSettingsValidatorDashboard = { is_attestations_missed_subscribed: true, is_block_proposal_subscribed: true, is_group_offline_subscribed: true, + is_max_collateral_subscribed: false, + is_min_collateral_subscribed: false, is_real_time_mode_enabled: false, is_slashed_subscribed: false, is_sync_subscribed: true, @@ -42,6 +44,8 @@ const validatorSub: NotificationSettingsValidatorDashboard = { is_validator_offline_subscribed: true, is_webhook_discord_enabled: true, is_withdrawal_processed_subscribed: true, + max_collateral_threshold: 0, + min_collateral_threshold: 0, webhook_url: 'http://bablabla', } diff --git a/frontend/stores/notifications/useNotificationsManagementStore.ts b/frontend/stores/notifications/useNotificationsManagementStore.ts index cea154e3a..68784b81b 100644 --- a/frontend/stores/notifications/useNotificationsManagementStore.ts +++ b/frontend/stores/notifications/useNotificationsManagementStore.ts @@ -21,14 +21,9 @@ export const useNotificationsManagementStore = defineStore('notifications-manage is_machine_offline_subscribed: false, is_machine_storage_usage_subscribed: false, is_push_notifications_enabled: false, - is_rocket_pool_max_collateral_subscribed: false, - is_rocket_pool_min_collateral_subscribed: false, - is_rocket_pool_new_reward_round_subscribed: false, machine_cpu_usage_threshold: 0.0, machine_memory_usage_threshold: 0.0, machine_storage_usage_threshold: 0.0, - rocket_pool_max_collateral_threshold: 0, - rocket_pool_min_collateral_threshold: 0, }, has_machines: true, networks: [],