changeset 2776:a0b63e2fca99

import_overview: only display additional info when state of current entry is pending
author Thomas Junk <thomas.junk@intevation.de>
date Fri, 22 Mar 2019 13:09:13 +0100
parents 2feb9f8f6c66
children c4821579cfaf
files client/src/components/importoverview/LogDetail.vue
diffstat 1 files changed, 9 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/client/src/components/importoverview/LogDetail.vue	Fri Mar 22 13:00:10 2019 +0100
+++ b/client/src/components/importoverview/LogDetail.vue	Fri Mar 22 13:09:13 2019 +0100
@@ -38,10 +38,13 @@
           {{ details.summary.los }})</span
         >
       </div>
-      <StretchDetail v-if="isStretch" :entry="entry"></StretchDetail>
+      <StretchDetail
+        v-if="isStretch && isPending"
+        :entry="entry"
+      ></StretchDetail>
       <SoundingResultDetail
         :entry="entry"
-        v-if="isSoundingResult"
+        v-if="isSoundingResult && isPending"
       ></SoundingResultDetail>
     </div>
     <AdditionalDetail
@@ -141,10 +144,12 @@
     kind() {
       return this.entry.kind.toUpperCase();
     },
+    isPending() {
+      return this.entry.state == "pending";
+    },
     hasAdditionalInfo() {
       return (
-        this.entry.state == "pending" &&
-        (this.isApprovedGaugeMeasurement || this.isBottleneck)
+        this.isPending && (this.isApprovedGaugeMeasurement || this.isBottleneck)
       );
     },
     isFairwayDimension() {