Skip to content

Commit

Permalink
ra and dec columns selection
Browse files Browse the repository at this point in the history
  • Loading branch information
nmcardoso committed Oct 27, 2024
1 parent 6a64c20 commit de9f396
Show file tree
Hide file tree
Showing 9 changed files with 494 additions and 274 deletions.
10 changes: 6 additions & 4 deletions app/@types/configContext.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@ interface IterableInterface {

interface ITableConfig extends IterableInterface {
type: 'local' | 'remote',
file: File | null,
url: string | null,
file?: File,
url?: string,
selectedColumnsId: number[]
columns: string[],
raIndex: number | null,
decIndex: number | null,
raIndex?: number,
decIndex?: number,
raCol?: string,
decCol?: string,
state: 'unloaded' | 'loading' | 'success' | 'positionNotFound' | 'error',
isSameFile: boolean,
dataTypes?: string[],
Expand Down
4 changes: 2 additions & 2 deletions app/components/setup/ConfigForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@ export default function ConfigForm() {
variant="success"
size="lg"
onClick={handleLoadClick}
disabled={tcState.table.status !== 'success'}>
{tcState.table.status === 'loading' ?
disabled={tcState.table.state !== 'success'}>
{tcState.table.state === 'loading' ?
<>
<Spinner
as="span"
Expand Down
Loading

0 comments on commit de9f396

Please sign in to comment.