Mercurial > gemma
diff client/src/components/importconfiguration/types/Fairwaymarks.vue @ 4916:d456621404c2 fairway-marks-import
Make fairwaymark imports editable again.
In case you update a fairway mark import, you can not switch the type.
There is only the option to delete the existing import.
For information purposes is the type displayed.
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Tue, 11 Feb 2020 16:51:09 +0100 |
parents | ab184888d58b |
children | 1b309a8e7673 |
line wrap: on
line diff
--- a/client/src/components/importconfiguration/types/Fairwaymarks.vue Tue Feb 11 16:13:57 2020 +0100 +++ b/client/src/components/importconfiguration/types/Fairwaymarks.vue Tue Feb 11 16:51:09 2020 +0100 @@ -23,14 +23,19 @@ </small> </div> <div class="w-50 mt-2"> - <select v-model="selectedMark" class="form-control form-control-sm"> - <option - v-for="(option, value) in $options.FAIRWAYMARKS" - :key="value" - :value="value" - >{{ option }}</option - > - </select> + <template v-if="isUpdate"> + <select v-model="selectedMark" class="form-control form-control-sm"> + <option + v-for="(option, value) in $options.FAIRWAYMARKS" + :key="value" + :value="value" + >{{ option }}</option + > + </select> + </template> + <template v-else=""> + <span class="pl-1">{{ selectedMark }}</span> + </template> </div> </div> </div> @@ -94,8 +99,8 @@ * Thomas Junk <thomas.junk@intevation.de> */ export default { - name: "waterwayarea", - props: ["url", "featureType", "sortBy", "mark"], + name: "fairwaymarks", + props: ["url", "featureType", "sortBy", "mark", "isUpdate"], computed: { selectedMark: { get() {