diff --git a/packages/builder/src/components/backend/DataTable/buttons/grid/GridViewCalculationButton.svelte b/packages/builder/src/components/backend/DataTable/buttons/grid/GridViewCalculationButton.svelte index 33931cdd3e..96a7d0ef8c 100644 --- a/packages/builder/src/components/backend/DataTable/buttons/grid/GridViewCalculationButton.svelte +++ b/packages/builder/src/components/backend/DataTable/buttons/grid/GridViewCalculationButton.svelte @@ -1,29 +1,161 @@ - + Configure calculations @@ -34,6 +166,76 @@ size="L" onConfirm={save} > - Show calculations which are based on + {#if !calculations.length} +
+ Add your first calculation +
+ {:else} +
+ {#each calculations as calc, idx} + {idx === 0 ? "Calculate" : "and"} the + + deleteCalc(idx)} + color="var(--spectrum-global-color-gray-700)" + /> + {/each} + {#each groupings as group, idx} + {idx === 0 ? "Group by" : "and"} +