Skip to content
Snippets Groups Projects
Commit 6dd50037 authored by Lene Wasskog's avatar Lene Wasskog
Browse files

feat(timeseries): Do not hide (only disable) dropdown for pest before culture is selected

parent 86e2a0a1
No related branches found
No related tags found
No related merge requests found
...@@ -47,10 +47,10 @@ ...@@ -47,10 +47,10 @@
<label for="cropId">{{ this.$i18n.t("observationTimeSeries.selectcrop") }}</label> <label for="cropId">{{ this.$i18n.t("observationTimeSeries.selectcrop") }}</label>
</div> </div>
<div class="form-floating mb-3" v-if="dataToSubmit.cropId > 0"> <div class="form-floating mb-3">
<select id="pestId" class="form-select" required <select id="pestId" class="form-select" required
v-model="dataToSubmit.pestId" v-model="dataToSubmit.pestId"
:disabled="uneditable()"> :disabled="dataToSubmit.cropId < 0 || uneditable()">
<option v-for="pest in formOptions.pests" v-bind:value="pest.pestId">{{ pest.pestName }}</option> <option v-for="pest in formOptions.pests" v-bind:value="pest.pestId">{{ pest.pestName }}</option>
</select> </select>
<label for="pestId">{{ this.$i18n.t("observationTimeSeries.selectpest") }}</label> <label for="pestId">{{ this.$i18n.t("observationTimeSeries.selectpest") }}</label>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment