Skip to content

Commit

Permalink
feat: remove legacy loading dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
gosticks committed Oct 10, 2023
1 parent a987a23 commit 1272c34
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions src/routes/graph/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@
import Minimal from '$lib/components/graph/Minimal.svelte';
import PlaneGraph from '$lib/components/graph/PlaneGraph.svelte';
import { PlaneGraphOptions } from '$lib/store/filterStore/graphs/plane';
import TableSelection, {
type TableSelectionEvent
import type {
DatasetSelectionEvent,
TableSelectionEvent
} from '$lib/components/tableSelection/TableSelection.svelte';
export let data: PageServerData;
Expand All @@ -28,6 +29,10 @@
await filterStore.initWithPreloadedDatasets(data.dataset);
});
function onDatasetSelected(evt: DatasetSelectionEvent) {
filterStore.selectDataset(evt.detail);
}
function onTableSelected(evt: TableSelectionEvent) {
const { buildInTables, externalTables } = evt.detail;
if (buildInTables) {
Expand Down Expand Up @@ -64,17 +69,8 @@
{:else}
<GridBackground />
{/if}
{#if $filterStore.selectedTables.length === 0}
<div class="h-full w-full flex flex-col gap-10 justify-center items-center">
<MessageCard>
<TableSelection on:select={onTableSelected} />
</MessageCard>
</div>
{/if}
</div>
{#if $filterStore.selectedTables.length !== 0}
<FilterSidebar />
{/if}
<FilterSidebar />

{#if $filterStore.isLoading || $dataStore.isLoading}
<LoadingOverlay isLoading={true} />
Expand Down

0 comments on commit 1272c34

Please sign in to comment.