changeset 999:60ca5bd3e326 persistent-import-queue

Merged default into persistent-import-queue branch.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Mon, 22 Oct 2018 16:55:05 +0200
parents 75e65599ea52 (current diff) 26ca04caa330 (diff)
children 14425e35e3c2
files
diffstat 1 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/client/src/morphtool/Morphtool.vue	Mon Oct 22 16:54:34 2018 +0200
+++ b/client/src/morphtool/Morphtool.vue	Mon Oct 22 16:55:05 2018 +0200
@@ -2,7 +2,7 @@
     <div v-if="selectedBottleneck || selectedMorph" class="morphcontainer">
         <div v-if="surveyList && !drawMode" class="ui-element card card-body shadow">
             <div class="headline">
-                <h4>{{selectedBottleneck.get("objnam")}}</h4>
+                <h4>{{bottleneckName}}</h4>
                 <hr>
                 <div @click="clearSelection" class="float-left ui-element d-flex morphtoolminus">
                     <i class="fa fa-close morphtoolsminus"></i>
@@ -18,7 +18,7 @@
             <div class="d-flex flex-row justify-content-between">
                 <i class="fa fa-close text-danger"></i>
                 <small>Bottleneck:&nbsp;</small>
-                <h6>{{selectedBottleneck.get("objnam")}} <small>( {{selectedMorph.date_info}} )</small></h6>
+                <h6>{{bottleneckName}} <small>( {{selectedMorph.date_info}} )</small></h6>
             </div>
         </div>
     </div>
@@ -88,7 +88,8 @@
   name: "morphtool",
   data() {
     return {
-      surveyList: null
+      surveyList: null,
+      bottleneckName: ""
     };
   },
   computed: {
@@ -114,6 +115,7 @@
       if (bottleneckFeature) {
         let bottleneckName = bottleneckFeature.get("objnam");
         if (bottleneckName) {
+          this.bottleneckName = bottleneckName;
           this.queryBottleneck(bottleneckName);
         }
       }