changeset 1565:faa045ebdf0c

select first surveydate after identification of bottleneck
author Thomas Junk <thomas.junk@intevation.de>
date Wed, 12 Dec 2018 12:25:41 +0100
parents d8b12138a214
children 20815bf5862f
files client/src/components/importschedule/Importscheduledetail.vue client/src/store/map.js
diffstat 2 files changed, 12 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/client/src/components/importschedule/Importscheduledetail.vue	Wed Dec 12 12:01:42 2018 +0100
+++ b/client/src/components/importschedule/Importscheduledetail.vue	Wed Dec 12 12:25:41 2018 +0100
@@ -76,11 +76,15 @@
               />
             </div>
           </div>
-          <div v-if="eMailNotification" class="flex-column w-100 mr-2">
+          <div class="flex-column w-100 mr-2">
             <div class="flex-row text-left">
               <small class="text-muted"> <translate>Email</translate> </small>
             </div>
-            <input class="form-control" type="text" />
+            <input
+              :disabled="!eMailNotification"
+              class="form-control"
+              type="text"
+            />
           </div>
           <button type="submit" class="shadow-sm btn btn-info submit-button">
             <translate>Submit</translate>
@@ -99,9 +103,11 @@
   name: "importscheduledetail",
   data() {
     return {
+      importType: null,
       schedule: null,
       import_: null,
-      eMailNotification: false
+      eMailNotification: false,
+      easyCron: true
     };
   },
   computed: {
--- a/client/src/store/map.js	Wed Dec 12 12:01:42 2018 +0100
+++ b/client/src/store/map.js	Wed Dec 12 12:25:41 2018 +0100
@@ -513,7 +513,9 @@
                       "bottlenecks/setSelectedBottleneck",
                       feature.get("objnam"),
                       { root: true }
-                    );
+                    ).then(() => {
+                      this.commit("bottlenecks/setFirstSurveySelected");
+                    });
                     commit("moveMap", {
                       coordinates: getCenter(
                         feature