From 693cdcca415cf2c7739abb43ebb0cbb26b9d737e Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Tue, 23 Jan 2024 12:16:06 +0100 Subject: [PATCH] improve AgCharts --- .../display/charts/AppAgCharts.svelte | 2 ++ .../GridAgChartsLicenseKe.svelte | 25 ++++--------------- 2 files changed, 7 insertions(+), 20 deletions(-) diff --git a/frontend/src/lib/components/apps/components/display/charts/AppAgCharts.svelte b/frontend/src/lib/components/apps/components/display/charts/AppAgCharts.svelte index b9872352dd..771c4c0740 100644 --- a/frontend/src/lib/components/apps/components/display/charts/AppAgCharts.svelte +++ b/frontend/src/lib/components/apps/components/display/charts/AppAgCharts.svelte @@ -216,6 +216,8 @@ let AgChartsInstance: any | undefined = undefined + $: license && loadLibrary() + async function loadLibrary() { if (ee) { const enterprise = await import('ag-charts-enterprise') diff --git a/frontend/src/lib/components/apps/editor/settingsPanel/GridAgChartsLicenseKe.svelte b/frontend/src/lib/components/apps/editor/settingsPanel/GridAgChartsLicenseKe.svelte index 9d43f32b5d..656edec3a3 100644 --- a/frontend/src/lib/components/apps/editor/settingsPanel/GridAgChartsLicenseKe.svelte +++ b/frontend/src/lib/components/apps/editor/settingsPanel/GridAgChartsLicenseKe.svelte @@ -1,30 +1,15 @@
AgCharts EE License Key - - {#if valid} - Valid - {:else} - Invalid + {#if initial != license} +
Please reload the page to see the effect of the new license key
{/if}