comparison client/src/components/importschedule/Importscheduledetail.vue @ 2377:fdec7a652f34

client: imports: avoid error when cron string cannot be parsed when trying to edit imports To prefill the form fields that generate the cron string, the currently stored cron string needs to be parsed back. This parsing only handles numerical values for each of the six cron fields. In case of something like */15 the regular expression does not match, leading to a null value. The cronMode select now has an empty option for cases where the cronString does not match any known pattern.
author Markus Kottlaender <markus@intevation.de>
date Fri, 22 Feb 2019 12:28:14 +0100
parents b9c317236ebc
children f185503ef35a
comparison
equal deleted inserted replaced
2376:6efd7ecd3a7d 2377:fdec7a652f34
243 style="width: 130px;" 243 style="width: 130px;"
244 v-model="cronMode" 244 v-model="cronMode"
245 class="form-control" 245 class="form-control"
246 @change="clearInputs" 246 @change="clearInputs"
247 > 247 >
248 <option :value="null"></option>
248 <option 249 <option
249 v-for="(option, key) in $options.CRONMODE" 250 v-for="(option, key) in $options.CRONMODE"
250 :value="key" 251 :value="key"
251 :key="key" 252 :key="key"
252 >{{ option }}</option 253 >{{ option }}</option