Mercurial > gemma
changeset 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 | 5d0e5159190f |
children | 85f9bf4a6eba 11fd7ee37f10 |
files | client/src/components/ImportStretches.vue client/src/components/importschedule/importtypes/Bottleneck.vue |
diffstat | 2 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/client/src/components/ImportStretches.vue Tue Mar 12 15:00:40 2019 +0100 +++ b/client/src/components/ImportStretches.vue Tue Mar 12 16:16:43 2019 +0100 @@ -157,13 +157,14 @@ > <div class="mt-2 mr-2 w-50 text-left"> <small class="text-muted"> - <translate>Tolerance for snapping of waterway axis</translate> + <translate>Tolerance for snapping of waterway axis [m]</translate> </small> <input class="form-control" v-model.number="tolerance" placeholder="" type="number" + min="0" step="any" aria-label="tolerance" id="tolerance"
--- 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>