diff client/src/components/importoverview/SoundingResultDetail.vue @ 4407:8c0f2377ff47

import_overview: DSR review details added
author Thomas Junk <thomas.junk@intevation.de>
date Tue, 17 Sep 2019 10:29:36 +0200
parents c71373594719
children 3b842e951317
line wrap: on
line diff
--- a/client/src/components/importoverview/SoundingResultDetail.vue	Tue Sep 17 09:18:46 2019 +0200
+++ b/client/src/components/importoverview/SoundingResultDetail.vue	Tue Sep 17 10:29:36 2019 +0200
@@ -1,8 +1,18 @@
 <template>
   <div>
-    <a @click="zoomTo()" class="text-info pointer">
+    <a v-if="isSR" @click="zoomTo()" class="text-info pointer">
       {{ details.summary.bottleneck }}
     </a>
+    <div class="d-flex flex-column" v-if="isDSR">
+      <span>
+        <translate>Bottleneck: </translate>
+        {{ details.summary["bottleneck-id"] }}
+      </span>
+      <span>
+        <translate>Survey from: </translate>
+        {{ details.summary["date-info"] | surveyDate }}
+      </span>
+    </div>
   </div>
 </template>
 
@@ -29,7 +39,13 @@
     this.$store.commit("imports/hideAdditionalInfo");
   },
   computed: {
-    ...mapState("imports", ["showAdditional", "details"])
+    ...mapState("imports", ["showAdditional", "details"]),
+    isSR() {
+      return this.entry.kind.toUpperCase() === "SR";
+    },
+    isDSR() {
+      return this.entry.kind.toUpperCase() === "DSR";
+    }
   },
   methods: {
     zoomTo() {