From 224139e9d0affd13fcbaabba1330bd3f379271b6 Mon Sep 17 00:00:00 2001 From: Tom Ratcliffe Date: Thu, 3 Apr 2025 18:22:13 +0100 Subject: [PATCH] Plugins: Revert accidental change to plugins code from Alerting PR (#103400) Revert accidental change to plugins code --- public/app/features/plugins/built_in_plugins.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/public/app/features/plugins/built_in_plugins.ts b/public/app/features/plugins/built_in_plugins.ts index 9f8ac9cda32..0b449003be4 100644 --- a/public/app/features/plugins/built_in_plugins.ts +++ b/public/app/features/plugins/built_in_plugins.ts @@ -1,3 +1,5 @@ +import { config } from '@grafana/runtime'; + const graphitePlugin = async () => await import(/* webpackChunkName: "graphitePlugin" */ 'app/plugins/datasource/graphite/module'); const cloudwatchPlugin = async () => @@ -55,7 +57,13 @@ const stateTimelinePanel = async () => await import(/* webpackChunkName: "stateTimelinePanel" */ 'app/plugins/panel/state-timeline/module'); const statusHistoryPanel = async () => await import(/* webpackChunkName: "statusHistoryPanel" */ 'app/plugins/panel/status-history/module'); -const tablePanel = async () => await import(/* webpackChunkName: "tablePanel" */ 'app/plugins/panel/table/module'); +const tablePanel = async () => { + if (config.featureToggles.tableNextGen) { + return await import(/* webpackChunkName: "tableNewPanel" */ 'app/plugins/panel/table/table-new/module'); + } else { + return await import(/* webpackChunkName: "tablePanel" */ 'app/plugins/panel/table/module'); + } +}; const textPanel = async () => await import(/* webpackChunkName: "textPanel" */ 'app/plugins/panel/text/module'); const timeseriesPanel = async () => await import(/* webpackChunkName: "timeseriesPanel" */ 'app/plugins/panel/timeseries/module');