# HG changeset patch # User Markus Kottlaender # Date 1550656680 -3600 # Node ID 2e57fd9b4f3afa8f4ee4fca52ffdefccc7f116ab # Parent 7cdc211b90cd462314cc6e94a2ba87eab956d265 client: imports: removed upload button from soundingresults import and trigger upload automatically Before, you needed to click Upload after selecting a file. This extra click is not necessary any more, reducing confusion and making the UI more intuitive. Maybe this can be done in other places too. diff -r 7cdc211b90cd -r 2e57fd9b4f3a client/src/components/ImportSoundingresults.vue --- a/client/src/components/ImportSoundingresults.vue Wed Feb 20 10:49:41 2019 +0100 +++ b/client/src/components/ImportSoundingresults.vue Wed Feb 20 10:58:00 2019 +0100 @@ -109,9 +109,8 @@ -
+
Download Meta.json
@@ -200,6 +198,7 @@ if (!files) return; this.uploadLabel = files[0].name; this.uploadFile = files[0]; + this.upload(); }, deleteTempData() { HTTP.delete("/imports/sr-upload/" + this.token, { @@ -218,14 +217,6 @@ }); }); }, - submit() { - if (!this.uploadFile || this.disableUpload) return; - if (this.importState === IMPORTSTATE.UPLOAD) { - this.upload(); - } else { - this.confirm(); - } - }, upload() { let formData = new FormData(); formData.append("soundingresult", this.uploadFile);