diff --git a/frontend/.vscode/settings.json b/frontend/.vscode/settings.json index 262d6523d..22971fa5c 100644 --- a/frontend/.vscode/settings.json +++ b/frontend/.vscode/settings.json @@ -14,6 +14,7 @@ "NotificationsManagmentMachines", "NotificationsNetworkTable", "NotificationsOverview", + "SubscriptionDialog", "a11y", "checkout", "ci", diff --git a/frontend/components/notifications/management/SubscriptionDialog.vue b/frontend/components/notifications/management/SubscriptionDialog.vue index d73bf41be..f1b9dc334 100644 --- a/frontend/components/notifications/management/SubscriptionDialog.vue +++ b/frontend/components/notifications/management/SubscriptionDialog.vue @@ -9,13 +9,6 @@ const { t: $t } = useTranslation() const { secondsPerEpoch, } = useNetworkStore() -const { user } = useUserStore() -const hasPremiumPerkGroupOffline = computed( - () => user.value?.premium_perks.notifications_validator_dashboard_group_offline, -) -const hasPremiumPerkRealTimeMode = computed( - () => user.value?.premium_perks.notifications_validator_dashboard_real_time_mode, -) function closeDialog(): void { dialogRef?.value.close() @@ -24,10 +17,8 @@ function closeDialog(): void { const checkboxes = ref({ is_attestations_missed_subscribed: props.value?.is_attestations_missed_subscribed ?? false, is_block_proposal_subscribed: props.value?.is_block_proposal_subscribed ?? false, - is_group_offline_subscribed: props.value?.is_group_offline_subscribed ?? false, is_max_collateral_subscribed: props.value?.is_max_collateral_subscribed ?? false, is_min_collateral_subscribed: props.value?.is_min_collateral_subscribed ?? false, - is_real_time_mode_enabled: props.value?.is_real_time_mode_enabled ?? false, is_slashed_subscribed: props.value?.is_slashed_subscribed ?? false, is_sync_subscribed: props.value?.is_sync_subscribed ?? false, is_upcoming_block_proposal_subscribed: props.value?.is_upcoming_block_proposal_subscribed ?? false, @@ -35,12 +26,16 @@ const checkboxes = ref({ is_withdrawal_processed_subscribed: props.value?.is_withdrawal_processed_subscribed ?? false, }) const thresholds = ref({ - group_offline_threshold: formatFraction(props.value?.group_offline_threshold ?? 0), max_collateral_threshold: formatFraction(props.value?.max_collateral_threshold ?? 0), min_collateral_threshold: formatFraction(props.value?.min_collateral_threshold ?? 0), }) const emit = defineEmits<{ - (e: 'change-settings', settings: Omit): void, + (e: 'change-settings', settings: Omit): void, }>() watchDebounced([ checkboxes, @@ -48,7 +43,6 @@ watchDebounced([ ], () => { emit('change-settings', { ...checkboxes.value, - group_offline_threshold: Number(formatToFraction(thresholds.value.group_offline_threshold)), max_collateral_threshold: Number(formatToFraction(thresholds.value.max_collateral_threshold)), min_collateral_threshold: Number(formatToFraction(thresholds.value.min_collateral_threshold)), }) @@ -97,33 +91,6 @@ watch(hasAllEvents, () => { /> - - - { has-unit :label="$t('notifications.subscriptions.validators.max_collateral_reached.label')" /> - -