changeset 4298:10bbaa57227c

client: disable send button with same values for bottleneck Morphology classbreaks
author Fadi Abbud <fadi.abbud@intevation.de>
date Mon, 02 Sep 2019 09:34:29 +0200
parents a524e7d7e75f
children 43f28ef473c7
files client/src/components/systemconfiguration/MorphologyClassbreaks.vue
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/client/src/components/systemconfiguration/MorphologyClassbreaks.vue	Fri Aug 30 18:55:33 2019 +0200
+++ b/client/src/components/systemconfiguration/MorphologyClassbreaks.vue	Mon Sep 02 09:34:29 2019 +0200
@@ -90,7 +90,10 @@
     <div class="mb-4 px-3">
       <a
         @click.prevent="submitClassbreaks"
-        class="btn btn-info btn-sm text-white"
+        :class="[
+          'btn btn-info btn-sm text-white',
+          { disabled: !checkValidity }
+        ]"
       >
         <translate>Send</translate>
       </a>