+
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
+
+ of
+
+ deleteCalc(idx)}
+ color="var(--spectrum-global-color-gray-700)"
+ />
+ {/each}
+ {#each groupings as group, idx}
+ {idx === 0 ? "Group by" : "and"}
+
+ deleteGrouping(idx)}
+ color="var(--spectrum-global-color-gray-700)"
+ />
+
+
+ {/each}
+
+
+ {/if}
+
+