changeset 3694:6f5297dc6039

client: bottleneck surveys dialog: show only compare survey dates that are not the selected one worked before but not when selecting a sounding result from the bottleneck list
author Markus Kottlaender <markus@intevation.de>
date Tue, 18 Jun 2019 18:23:20 +0200
parents 10cbf467fd63
children 5754793ff9b0
files client/src/components/fairway/Profiles.vue
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/client/src/components/fairway/Profiles.vue	Tue Jun 18 18:03:23 2019 +0200
+++ b/client/src/components/fairway/Profiles.vue	Tue Jun 18 18:23:20 2019 +0200
@@ -383,7 +383,9 @@
       }
     },
     additionalSurveys() {
-      return this.surveys.filter(survey => survey !== this.selectedSurvey);
+      return this.surveys.filter(
+        survey => survey.date_info !== this.selectedSurvey.date_info
+      );
     },
     coordinatesForClipboard() {
       return (