Skip to content

Commit

Permalink
#464 Add downloadURL config var
Browse files Browse the repository at this point in the history
  • Loading branch information
tariqksoliman committed Jun 17, 2024
1 parent dadeb60 commit 0753bd0
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 6 deletions.
2 changes: 1 addition & 1 deletion configure/public/toolConfigs.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion configure/src/core/calls.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const domain =
window.mmgisglobal.NODE_ENV === "development"
? "http://localhost:8888"
? "http://localhost:8888/"
: window.location.origin + "/";

const c = {
Expand Down
12 changes: 12 additions & 0 deletions configure/src/metaconfigs/layer-data-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,18 @@
"width": 6
}
]
},
{
"subname": "Downloads",
"components": [
{
"field": "variables.downloadURL",
"name": "Download URL",
"description": "Provides a menu option for users to download the specified source data file for the layer.",
"type": "text",
"width": 12
}
]
}
]
},
Expand Down
12 changes: 12 additions & 0 deletions configure/src/metaconfigs/layer-tile-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,18 @@
"width": 6
}
]
},
{
"subname": "Downloads",
"components": [
{
"field": "variables.downloadURL",
"name": "Download URL",
"description": "Provides a menu option for users to download the specified source data file for the layer.",
"type": "text",
"width": 12
}
]
}
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import { calls } from "../../../../core/calls";
import Papa from "papaparse";

import {
setMissions,
setModal,
setSnackBarText,
} from "../../../../core/ConfigureStore";
Expand All @@ -27,9 +26,6 @@ import InsertDriveFileIcon from "@mui/icons-material/InsertDriveFile";
import { useDropzone } from "react-dropzone";

import TextField from "@mui/material/TextField";
import FormGroup from "@mui/material/FormGroup";
import FormControlLabel from "@mui/material/FormControlLabel";
import Checkbox from "@mui/material/Checkbox";

import { makeStyles, useTheme } from "@mui/styles";
import useMediaQuery from "@mui/material/useMediaQuery";
Expand Down

0 comments on commit 0753bd0

Please sign in to comment.