diff client/src/components/importoverview/LogDetail.vue @ 2647:c52bf6f994c0

overview2: bottleneckview added
author Thomas Junk <thomas.junk@intevation.de>
date Thu, 14 Mar 2019 14:07:25 +0100
parents 13377f2a5c42
children 39a05f8c34e6
line wrap: on
line diff
--- a/client/src/components/importoverview/LogDetail.vue	Thu Mar 14 13:38:59 2019 +0100
+++ b/client/src/components/importoverview/LogDetail.vue	Thu Mar 14 14:07:25 2019 +0100
@@ -20,9 +20,9 @@
         <span class="text-info" v-if="isApprovedGaugeMeasurement">
           ({{ entry.summary.length }})</span
         >
-        <span v-if="isBottleneck" class="text-left">{{
-          data.summary.bottlenecks.length
-        }}</span>
+        <span v-if="isBottleneck" class="text-info text-left">
+          ({{ entry.summary.bottlenecks.length }})</span
+        >
         <span class="text-left" v-if="isFairwayDimension"
           >{{ entry.summary["source-organization"] }} (LOS:
           {{ entry.summary.los }})</span
@@ -113,7 +113,10 @@
       return this.entry.kind.toUpperCase();
     },
     hasAdditionalInfo() {
-      return this.entry.state == "pending" && this.isApprovedGaugeMeasurement;
+      return (
+        this.entry.state == "pending" &&
+        (this.isApprovedGaugeMeasurement || this.isBottleneck)
+      );
     },
     isFairwayDimension() {
       return this.kind === "FD";