changeset 3574:d5959f69e903

import_sounding_result: accept txt files
author Thomas Junk <thomas.junk@intevation.de>
date Mon, 03 Jun 2019 16:08:34 +0200
parents 9d1eb993ab14
children 818cc2deff98
files client/src/components/importconfiguration/types/Soundingresults.vue
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/client/src/components/importconfiguration/types/Soundingresults.vue	Mon Jun 03 15:47:32 2019 +0200
+++ b/client/src/components/importconfiguration/types/Soundingresults.vue	Mon Jun 03 16:08:34 2019 +0200
@@ -109,7 +109,7 @@
         </div>
         <div class="custom-file mt-4">
           <input
-            accept=".zip"
+            accept=".zip,.txt"
             type="file"
             @change="fileSelected"
             class="custom-file-input"
@@ -190,7 +190,7 @@
       bottleneck: "",
       projection: "",
       importDate: "",
-      uploadLabel: this.$gettext("choose .zip- file"),
+      uploadLabel: this.$gettext(this.$options.UPLOADLABEL),
       uploadFile: null,
       disableUpload: false,
       token: null,
@@ -208,7 +208,7 @@
       this.bottleneck = null;
       this.projection = "";
       this.importDate = "";
-      this.uploadLabel = this.$gettext("choose .zip- file");
+      this.uploadLabel = this.$gettext(this.$options.UPLOADLABEL);
       this.uploadFile = null;
       this.disableUpload = false;
       this.token = null;
@@ -376,6 +376,7 @@
       return [];
     }
   },
+  UPLOADLABEL: "choose a .zip or .txt file",
   on: "on",
   off: "off"
 };