diff client/src/components/importconfiguration/types/Statsupdate.vue @ 5389:661e8a2deed9 extented-report

add simple validation to statsupdate import
author Thomas Junk <thomas.junk@intevation.de>
date Fri, 02 Jul 2021 14:16:02 +0200
parents 60bba8e6322b
children
line wrap: on
line diff
--- a/client/src/components/importconfiguration/types/Statsupdate.vue	Fri Jul 02 13:56:51 2021 +0200
+++ b/client/src/components/importconfiguration/types/Statsupdate.vue	Fri Jul 02 14:16:02 2021 +0200
@@ -12,6 +12,9 @@
             v-model="selectedStatsUpdate"
             class="ml-1 mr-1 form-control form-control-sm"
           >
+            <option value="" v-if="this.statsUpdates.length === 0"
+              ><translate>No data selectable</translate></option
+            >
             <option
               v-for="(option, index) in this.statsUpdates"
               :key="index"