Skip to content

Commit

Permalink
Various fixes (#108)
Browse files Browse the repository at this point in the history
* Fix StackLayer when using "To acquired" datasets

* Fix Leaflet map z-index

* Remove console.log in DatasetFileInput
  • Loading branch information
qgerome authored Jun 27, 2022
1 parent 458b056 commit 0a9d637
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
5 changes: 4 additions & 1 deletion src/components/map/Map.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ const Map = (props: MapProps) => {
const { t } = useTranslation();

return (
<div className={clsx(className, "relative h-full w-full")} style={style}>
<div
className={clsx(className, "relative isolate h-full w-full")}
style={style}
>
<MapContainer
center={center}
zoom={zoom}
Expand Down
2 changes: 0 additions & 2 deletions src/features/dataset/DatasetFileInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ const DatasetFileInput = (props: DatasetFileInputProps) => {
</div>
);
}

return (
<Dropzone
disabled={disabled || !role}
Expand All @@ -84,7 +83,6 @@ const DatasetFileInput = (props: DatasetFileInputProps) => {
onChange={setSelectedFiles}
accept={role?.format ? ACCEPTED_MIMETYPES[role.format] : undefined}
>
{JSON.stringify(ACCEPTED_MIMETYPES[role?.format])}
{children}
</Dropzone>
);
Expand Down
7 changes: 6 additions & 1 deletion src/features/dataset/StackLayerPriorities.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,12 @@ const StackLayerPriorities = (props: StackLayerPrioritiesProps) => {

const disabled = useMemo(
() =>
!layers.every((layer) => layer.status === AccessmodFilesetStatus.Valid),
!layers.every((layer) =>
[
AccessmodFilesetStatus.Valid,
AccessmodFilesetStatus.ToAcquire,
].includes(layer.status)
),
[layers]
);

Expand Down

0 comments on commit 0a9d637

Please sign in to comment.