diff --git a/web-common/src/features/canvas/components/pivot/CanvasPivotDisplay.svelte b/web-common/src/features/canvas/components/pivot/CanvasPivotDisplay.svelte index 4b33042a9542..e947d9383e3d 100644 --- a/web-common/src/features/canvas/components/pivot/CanvasPivotDisplay.svelte +++ b/web-common/src/features/canvas/components/pivot/CanvasPivotDisplay.svelte @@ -1,5 +1,6 @@ + +
+ + + {#if shownSort} + {#if chipsReady} +
+ {#each chips as chip, i (i)} + {#if i > 0} + + + + {/if} + + {chip.label} + + {/each} + + + +
+ {:else} +
+ +
+ {/if} + +
+ + {#if storedDefault} + + {/if} +
+ {:else} + + Sort a column on the table to set it as the default. + + {/if} +
diff --git a/web-common/src/features/canvas/inspector/ParamMapper.svelte b/web-common/src/features/canvas/inspector/ParamMapper.svelte index 31a050177106..3890c4160509 100644 --- a/web-common/src/features/canvas/inspector/ParamMapper.svelte +++ b/web-common/src/features/canvas/inspector/ParamMapper.svelte @@ -17,6 +17,7 @@ import MetricsSQLInput from "./chart/MetricsSQLInput.svelte"; import PositionalFieldConfig from "./chart/PositionalFieldConfig.svelte"; import ComparisonInput from "./ComparisonInput.svelte"; + import DefaultSortInput from "./DefaultSortInput.svelte"; import MultiFieldInput from "./fields/MultiFieldInput.svelte"; import SingleFieldInput from "./fields/SingleFieldInput.svelte"; import LabelsInput from "./LabelsInput.svelte"; @@ -235,6 +236,10 @@ }} /> + + {:else if config.type === "default_sort" && component instanceof PivotCanvasComponent} + + {:else if config.type === "switcher_tab"}