diff client/src/components/fairway/Profiles.vue @ 3512:30a47d9fc667 waterlevel-in-crossprofile

client: fairway profiles: removed some old code
author Markus Kottlaender <markus@intevation.de>
date Tue, 28 May 2019 18:27:21 +0200
parents cb2f67a07400
children 8a9ee18de13f
line wrap: on
line diff
--- a/client/src/components/fairway/Profiles.vue	Tue May 28 17:14:52 2019 +0200
+++ b/client/src/components/fairway/Profiles.vue	Tue May 28 18:27:21 2019 +0200
@@ -45,15 +45,11 @@
                 v-model="selectedWaterLevel"
                 class="form-control form-control-sm small"
               >
-                <option value="" v-if="Object.keys(waterLevels).length === 0">
-                  <translate>Current</translate>
+                <option value="LDC">
+                  <translate>LDC</translate>
                 </option>
-                <option
-                  v-for="wl in Object.keys(waterLevels)"
-                  :key="wl"
-                  :value="wl"
-                >
-                  {{ wl | surveyDate }}
+                <option value="current">
+                  <translate>Current</translate>
                 </option>
               </select>
             </div>
@@ -327,7 +323,7 @@
     },
     selectedWaterLevel: {
       get() {
-        return this.$store.state.fairwayprofile.selectedWaterLevel.date || "";
+        return this.$store.state.fairwayprofile.selectedWaterLevel;
       },
       set(value) {
         this.$store.commit("fairwayprofile/setSelectedWaterLevel", value);