set limit for gpx zip import - see #19

+ pipenv related updates
This commit is contained in:
Sam
2018-07-01 17:12:37 +02:00
parent c4877046ab
commit e78d014ed1
6 changed files with 17 additions and 4 deletions

View File

@ -4,6 +4,7 @@ import { connect } from 'react-redux'
import { setLoading } from '../../../actions/index'
import { addActivity, editActivity } from '../../../actions/activities'
import { history } from '../../../index'
import { gpxLimit } from '../../../utils'
function FormWithGpx (props) {
@ -52,7 +53,8 @@ function FormWithGpx (props) {
<div className="form-group">
<label>
<strong>gpx</strong> file or <strong>zip</strong>{' '}
file containing <strong>gpx</strong> (no folder inside):
file containing <strong>gpx</strong> (no folder inside, {
gpxLimit} files max):
<input
accept=".gpx, .zip"
className="form-control input-lg"

View File

@ -6,6 +6,7 @@ export const apiUrl = `${process.env.REACT_APP_API_URL}/api/`
export const thunderforestApiKey = `${
process.env.REACT_APP_THUNDERFOREST_API_KEY
}`
export const gpxLimit = `${process.env.REACT_APP_GPX_LIMIT_IMPORT}`
export const activityColors = [
'#55a8a3',
'#98C3A9',