diff --git a/frontend/components/dashboard/DashboardControls.vue b/frontend/components/dashboard/DashboardControls.vue index 00da3e2f7..b9f68f27f 100644 --- a/frontend/components/dashboard/DashboardControls.vue +++ b/frontend/components/dashboard/DashboardControls.vue @@ -42,7 +42,6 @@ const { publicEntities, setDashboardKey, } = useDashboardKey() -const { refreshOverview } = useValidatorDashboardOverviewStore() const userDashboardStore = useUserDashboardStore() const { getDashboardLabel, refreshDashboards, updateHash, @@ -59,6 +58,10 @@ const isMobile = computed(() => width.value < 520) const manageGroupsModalVisisble = ref(false) const manageValidatorsModalVisisble = ref(false) +const emit = defineEmits<{ + (e: 'updateAll'): void, +}>() + const manageButtons = computed(() => { if (isShared.value) { return undefined @@ -342,7 +345,7 @@ const editDashboard = () => { onClose: (value?: DynamicDialogCloseOptions | undefined) => { if (value?.data === true) { refreshDashboards() - refreshOverview(dashboardKey.value) + emit('updateAll') } }, }) @@ -350,10 +353,11 @@ const editDashboard = () => {