mirror of
https://github.com/protomaps/PMTiles.git
synced 2026-02-04 10:51:07 +00:00
Merge pull request #131 from jamesscottbrown/patch-2
disable "Load URL" button if url is empty
This commit is contained in:
@@ -142,7 +142,7 @@ function Start(props: {
|
|||||||
placeholder="https://example.com/my_archive.pmtiles"
|
placeholder="https://example.com/my_archive.pmtiles"
|
||||||
onChange={onRemoteUrlChangeHandler}
|
onChange={onRemoteUrlChangeHandler}
|
||||||
></Input>
|
></Input>
|
||||||
<Button color="gray" onClick={onSubmit}>
|
<Button color="gray" onClick={onSubmit} disabled={!remoteUrl.trim()}>
|
||||||
Load URL
|
Load URL
|
||||||
</Button>
|
</Button>
|
||||||
<Label htmlFor="localFile">Select a local file</Label>
|
<Label htmlFor="localFile">Select a local file</Label>
|
||||||
|
|||||||
Reference in New Issue
Block a user