diff --git a/js/src/configdialogmodel.js b/js/src/configdialogmodel.js
index aa67b8d..d71440f 100644
--- a/js/src/configdialogmodel.js
+++ b/js/src/configdialogmodel.js
@@ -55,7 +55,8 @@ export default class ConfigDialogModel extends ViewModel {
strokeOpacity: config.strokeOpacity,
strokeWeight: config.strokeWeight,
units: config.units,
- uploadMaxSize: config.uploadMaxSize
+ uploadMaxSize: config.uploadMaxSize,
+ uploadMaxSizeMB: config.uploadMaxSize / 1024 / 1024
});
this.model.onCancel = () => this.onCancel();
this.model.onSave = () => this.onSave();
@@ -83,6 +84,7 @@ export default class ConfigDialogModel extends ViewModel {
this.model.layerUrl = layer ? layer.url : '';
this.toggleEditVisible();
});
+ this.onChanged('uploadMaxSizeMB', (value) => { this.model.uploadMaxSize = value * 1024 * 1024;})
this.onChanged('layers', (list) => this.layerSelect.setOptions(list));
this.onChanged('requireAuth', (value) => {
this.setPublicTracksActivity(value);
@@ -244,7 +246,7 @@ export default class ConfigDialogModel extends ViewModel {
+