diff --git a/mathesar_ui/src/systems/table-view/TableView.svelte b/mathesar_ui/src/systems/table-view/TableView.svelte index 346e03662a..833a2d7368 100644 --- a/mathesar_ui/src/systems/table-view/TableView.svelte +++ b/mathesar_ui/src/systems/table-view/TableView.svelte @@ -4,7 +4,7 @@ import { get } from 'svelte/store'; import type { TableEntry } from '@mathesar/api/rest/types/tables'; - import { ImmutableMap } from '@mathesar/component-library'; + import { ImmutableMap, Spinner } from '@mathesar/component-library'; import { Sheet } from '@mathesar/components/sheet'; import { SheetClipboardHandler } from '@mathesar/components/sheet/SheetClipboardHandler'; import { rowHeaderWidthPx } from '@mathesar/geometry'; @@ -46,7 +46,8 @@ $: usesVirtualList = context !== 'widget'; $: allowsDdlOperations = context !== 'widget' && canExecuteDDL; $: sheetHasBorder = context === 'widget'; - $: ({ processedColumns, display, selection, recordsData } = $tabularData); + $: ({ processedColumns, display, isLoading, selection, recordsData } = + $tabularData); $: clipboardHandler = new SheetClipboardHandler({ getCopyingContext: () => ({ rowsMap: new Map( @@ -95,6 +96,11 @@ bind:activeTabId={tableInspectorTab} >
+ {#if $isLoading} +
+ +
+ {/if} {#if $processedColumns.size}