Skip to content

Commit

Permalink
refactor: adapt for api changes
Browse files Browse the repository at this point in the history
  • Loading branch information
benji-bitfly committed Oct 1, 2024
1 parent 39b9342 commit 8c90127
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ const {
setSearch,
} = useNotificationsRocketpoolStore()
const { overview } = useNotificationsDashboardOverviewStore()
const { width } = useWindowSize()
const colsVisible = computed(() => {
return {
Expand Down Expand Up @@ -118,12 +116,6 @@ const getEventTypeName = (eventType: NotificationRocketPoolTableRow['event_type'
@open-dialog="$emit('openDialog')"
/>
</template>
<template
v-if="overview?.rocket_pool_subscription_count ?? 0"
#bc-table-footer-right
>
{{ $t('notifications.rocketpool.col.rocketpool_subscription', { count: overview?.rocket_pool_subscription_count }) }}
</template>
</BcTable>
</ClientOnly>
</template>
Expand Down
4 changes: 4 additions & 0 deletions frontend/components/playground/PlaygroundDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,17 @@ 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,
is_upcoming_block_proposal_subscribed: false,
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',
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,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,
},
networks: [ {
chain_id: 0,
Expand All @@ -35,6 +30,7 @@ export const useNotificationsManagementStore = defineStore('notifications-manage
gas_below_threshold: '0.0',
is_gas_above_subscribed: false,
is_gas_below_subscribed: false,
is_new_reward_round_subscribed: false,
is_participation_rate_subscribed: false,
participation_rate_threshold: 0,
},
Expand Down

0 comments on commit 8c90127

Please sign in to comment.