Merge pull request #131 from jamesscottbrown/patch-2

disable "Load URL" button if url is empty
This commit is contained in:
Brandon Liu
2023-03-12 13:07:33 +08:00
committed by GitHub

View File

@@ -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>