changeset 3265:f92f7c9df392

client: define stretches: fixed editing stretches and some code formatting
author Markus Kottlaender <markus@intevation.de>
date Wed, 15 May 2019 13:00:28 +0200
parents 9ae43313b463
children 3dee5cf16a58
files client/src/components/stretches/Stretches.vue
diffstat 1 files changed, 10 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/client/src/components/stretches/Stretches.vue	Wed May 15 12:31:57 2019 +0200
+++ b/client/src/components/stretches/Stretches.vue	Wed May 15 13:00:28 2019 +0200
@@ -29,21 +29,21 @@
           <template v-slot:row="{ item: stretch }">
             <div class="py-1 col-4 ">
               <a
-                class="pointer text-info"
+                class="text-info"
                 v-if="isInStaging(stretch.properties.name)"
                 @click="gotoStaging(getStagingLink(stretch.properties.name))"
               >
-                {{ stretch.properties.name
-                }}<font-awesome-icon
+                {{ stretch.properties.name }}
+                <font-awesome-icon
                   class="ml-1 text-danger"
                   icon="exclamation-triangle"
                   fixed-width
-                ></font-awesome-icon
-                ><small class="ml-1">review</small>
+                />
+                <small class="ml-1">review</small>
               </a>
-              <a v-else @click="moveMapToStretch(stretch)" href="#">{{
-                stretch.properties.name
-              }}</a>
+              <a v-else @click="moveMapToStretch(stretch)" href="#">
+                {{ stretch.properties.name }}
+              </a>
             </div>
             <div class="py-1 col-2">
               {{ stretch.properties.date_info | surveyDate }}
@@ -425,8 +425,8 @@
       this.countryCode = properties.countries;
       this.source = properties["source_organization"];
       this.edit = true;
-      this.startrhm = properties.lower;
-      this.endrhm = properties.upper;
+      this.startrhm = properties.lower.replace(/[,()]/g, "");
+      this.endrhm = properties.upper.replace(/[,()]/g, "");
       this.editExistingStretch = true;
     },
     deleteStretch(stretch) {