changeset 2165:82dad8d808a7

agm_diff: usability bug fixed
author Thomas Junk <thomas.junk@intevation.de>
date Fri, 08 Feb 2019 13:53:50 +0100
parents 0e2f4b059897
children 69c49301d689
files client/src/components/staging/StagingDetail.vue
diffstat 1 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/client/src/components/staging/StagingDetail.vue	Fri Feb 08 13:21:36 2019 +0100
+++ b/client/src/components/staging/StagingDetail.vue	Fri Feb 08 13:53:50 2019 +0100
@@ -197,10 +197,7 @@
           <span class="condensed agmdetail text-left"
             ><small>{{ formatSurveyDate(result["measure-date"]) }}</small></span
           >
-          <div
-            @click="showBottleneckDetails = !showBottleneckDetails"
-            class="small ml-auto mt-auto mb-auto text-info text-left"
-          >
+          <div class="small ml-auto mt-auto mb-auto text-info text-left">
             <font-awesome-icon
               class="pointer"
               v-if="showDiff == index"
@@ -221,7 +218,10 @@
               <div class="header border-bottom agmdetailskeys">
                 <small><translate>Value</translate></small>
               </div>
-              <div class="header border-bottom agmdetailsvalues">
+              <div
+                v-if="result.versions.length == 2"
+                class="header border-bottom agmdetailsvalues"
+              >
                 <small><translate>Old</translate></small>
               </div>
               <div class="header border-bottom agmdetailsvalues">
@@ -342,7 +342,7 @@
   },
   methods: {
     toggleDiff(number) {
-      if (this.showDiff == -1) {
+      if (this.showDiff !== number || this.showDiff == -1) {
         this.showDiff = number;
       } else {
         this.showDiff = -1;