Bug fix.
This commit is contained in:
1 parent
ccbcd12f96
commit
5658cc0556
6 files changed
+52
-36
No files matched your search
@@ -79,20 +79,6 @@ const GpxImportSingleFile: Component<Props> = ({ gpxFile }) => {
|
||||
|
||||
const doImport = async () => {
|
||||
setState('importing');
|
||||
// for (const file of event.target.files) {
|
||||
// const fileReader = new FileReader();
|
||||
// fileReader.readAsText(file);
|
||||
|
||||
// fileReader.addEventListener(
|
||||
// 'load',
|
||||
// async () => {
|
||||
// // this will then display a text file
|
||||
// console.log({
|
||||
// caller: 'GpxImport / XML',
|
||||
// file,
|
||||
// result: fileReader.result,
|
||||
// });
|
||||
// const gpx = GPX.parse(fileReader.result);
|
||||
// console.log({ caller: 'GpxImport / JSON', file, gpx });
|
||||
// if (gpx) {
|
||||
// const startTime = new Date(findStartTime(gpx)!);
|
||||
@@ -167,25 +153,6 @@ const GpxImportSingleFile: Component<Props> = ({ gpxFile }) => {
|
||||
<Show when={statsAndGpx().stats.trkMaybeRte}>
|
||||
<Typography variant='body1'>{t('trkMaybeRte')}</Typography>
|
||||
</Show>
|
||||
{/* <Show when={statsAndGpx().stats.nbTrks > 0}>
|
||||
<FormControl fullWidth>
|
||||
<FormLabel>{t('importTrk')}</FormLabel>
|
||||
<RadioGroup>
|
||||
<FormControlLabel
|
||||
control={<Radio color='success' />}
|
||||
{...controlTrkTransformProps('importNonTimedTrksAsRtes')}
|
||||
/>
|
||||
<FormControlLabel
|
||||
control={<Radio color='secondary' />}
|
||||
{...controlTrkTransformProps('importAllTrksAsRtes')}
|
||||
/>
|
||||
<FormControlLabel
|
||||
control={<Radio color='error' />}
|
||||
{...controlTrkTransformProps('importTrksAsTrks')}
|
||||
/>
|
||||
</RadioGroup>
|
||||
</FormControl>
|
||||
</Show> */}
|
||||
<Show when={state() === 'importing'}>
|
||||
<LinearProgress />
|
||||
</Show>
|
||||
|
||||
Reference in new issue
Block a user