diff client/src/components/importschedule/importtypes/Bottleneck.vue @ 2603:8d767359fddb

Improve tolerance input Mention unit in field header and prevent input of negative values.
author Tom Gottfried <tom@intevation.de>
date Tue, 12 Mar 2019 16:16:43 +0100
parents bc1b43885a4d
children
line wrap: on
line diff
--- a/client/src/components/importschedule/importtypes/Bottleneck.vue	Tue Mar 12 15:00:40 2019 +0100
+++ b/client/src/components/importschedule/importtypes/Bottleneck.vue	Tue Mar 12 16:16:43 2019 +0100
@@ -51,7 +51,7 @@
       <div class="flex-column mt-3 mr-3 w-50">
         <div class="flex-row text-left">
           <small class="text-muted">
-            <translate>Tolerance for snapping of waterway axis</translate>
+            <translate>Tolerance for snapping of waterway axis [m]</translate>
           </small>
         </div>
         <div class="w-100">
@@ -59,6 +59,7 @@
             @input="toleranceChanged"
             class="tolerance form-control"
             type="number"
+            min="0"
             :value="tolerance"
           />
         </div>