From 0fb6dfc81233d752e99b553a30783d1589062fa2 Mon Sep 17 00:00:00 2001 From: Matthias Date: Thu, 4 Jul 2024 13:02:58 +0200 Subject: [PATCH] DashboardView - use proper Functions --- src/views/DashboardView.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/views/DashboardView.vue b/src/views/DashboardView.vue index 62b40de6..7f90f5c9 100644 --- a/src/views/DashboardView.vue +++ b/src/views/DashboardView.vue @@ -166,10 +166,10 @@ const botStore = useBotStore(); const layoutStore = useLayoutStore(); const currentBreakpoint = ref(''); -const breakpointChanged = (newBreakpoint: string) => { +function breakpointChanged(newBreakpoint: string) { // console.log('breakpoint:', newBreakpoint); currentBreakpoint.value = newBreakpoint; -}; +} const isResizableLayout = computed(() => ['', 'sm', 'md', 'lg', 'xl'].includes(currentBreakpoint.value), ); @@ -184,13 +184,13 @@ const gridLayoutData = computed((): GridItemData[] => { return [...layoutStore.getDashboardLayoutSm]; }); -const layoutUpdatedEvent = (newLayout) => { +function layoutUpdatedEvent(newLayout) { if (isResizableLayout.value) { console.log('newlayout', newLayout); console.log('saving dashboard'); layoutStore.dashboardLayout = newLayout; } -}; +} const gridLayoutDaily = computed((): GridItemData => { return findGridLayout(gridLayoutData.value, DashboardLayout.dailyChart);