From 2db5a8b0412cc27489d9bfb19eb674dbd79fb5db Mon Sep 17 00:00:00 2001 From: ktx-vaidehi <134508096+ktx-vaidehi@users.noreply.github.com> Date: Thu, 13 Mar 2025 19:57:55 +0530 Subject: [PATCH] feat: dashboard set show_symbol bydefault as true (#6193) --- web/src/components/dashboards/addPanel/ConfigPanel.vue | 5 +++-- web/src/composables/useDashboardPanel.ts | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/web/src/components/dashboards/addPanel/ConfigPanel.vue b/web/src/components/dashboards/addPanel/ConfigPanel.vue index e6d59b5337..ce40a67dc4 100644 --- a/web/src/components/dashboards/addPanel/ConfigPanel.vue +++ b/web/src/components/dashboards/addPanel/ConfigPanel.vue @@ -1626,8 +1626,9 @@ export default defineComponent({ } // by default, set show_symbol as false - if (!dashboardPanelData.data.config.show_symbol) { - dashboardPanelData.data.config.show_symbol = false; + if (dashboardPanelData.data.config.show_symbol === undefined) { + const isNewPanel = !dashboardPanelData.data.id; + dashboardPanelData.data.config.show_symbol = isNewPanel; } // by default, set line interpolation as smooth diff --git a/web/src/composables/useDashboardPanel.ts b/web/src/composables/useDashboardPanel.ts index 6f26759093..1310eab533 100644 --- a/web/src/composables/useDashboardPanel.ts +++ b/web/src/composables/useDashboardPanel.ts @@ -66,7 +66,7 @@ const getDefaultDashboardPanelData: any = () => ({ position: null, rotate: 0, }, - show_symbol: false, + show_symbol: true, line_interpolation: "smooth", legend_width: { value: null,