3
0

Fix error for unconfigured sources in Geometry Block

This commit is contained in:
Emmy Leke
2023-01-20 11:26:31 +01:00
committed by EmmyMay
parent 179b91e7ec
commit e45fe7e7b5
4 changed files with 50 additions and 50 deletions

View File

@@ -149,7 +149,7 @@ export default {
zoomMax,
}
Promise.all(this.options.feeds.map((feed, idx) => {
Promise.all(this.options.feeds.filter(f => f.isValid()).map((feed, idx) => {
return this.findModuleByID({ namespace: this.namespace, moduleID: feed.options.moduleID })
.then(module => {
// Interpolate prefilter variables

View File

@@ -28,16 +28,21 @@
horizontal
:label-cols="3"
breakpoint="md"
:label="$t('geometry.recordFeed.colorLabel')"
:label="$t('geometry.recordFeed.geometryFieldLabel')"
>
<b-input-group>
<b-form-input
v-model="feed.options.color"
style="max-width: 50px;"
type="color"
debounce="300"
/>
</b-input-group>
<b-form-select
v-model="feed.geometryField"
:options="geometryFields | optionizeFields"
>
<template slot="first">
<option
disabled
value=""
>
{{ $t('geometry.recordFeed.geometryFieldPlaceholder') }}
</option>
</template>
</b-form-select>
</b-form-group>
<b-form-group
@@ -61,6 +66,35 @@
</b-form-select>
</b-form-group>
<b-form-group
horizontal
:label-cols="3"
breakpoint="md"
:label="$t('calendar.recordFeed.prefilterLabel')"
>
<b-form-textarea
v-model="feed.options.prefilter"
:value="true"
:placeholder="$t('calendar.recordFeed.prefilterPlaceholder')"
/>
</b-form-group>
<b-form-group
horizontal
:label-cols="3"
breakpoint="md"
:label="$t('geometry.recordFeed.colorLabel')"
>
<b-input-group>
<b-form-input
v-model="feed.options.color"
style="max-width: 50px;"
type="color"
debounce="300"
/>
</b-input-group>
</b-form-group>
<b-form-group
horizontal
:label-cols="3"
@@ -88,42 +122,6 @@
size="lg"
/>
</b-form-group>
<b-form-group
horizontal
:label-cols="3"
breakpoint="md"
:label="$t('geometry.recordFeed.geometryFieldLabel')"
>
<b-form-select
v-model="feed.geometryField"
:options="geometryFields | optionizeFields"
>
<template slot="first">
<option
disabled
value=""
>
{{ $t('geometry.recordFeed.geometryFieldPlaceholder') }}
</option>
</template>
</b-form-select>
</b-form-group>
<br>
<b-form-group
horizontal
:label-cols="3"
breakpoint="md"
:label="$t('calendar.recordFeed.prefilterLabel')"
>
<b-form-textarea
v-model="feed.options.prefilter"
:value="true"
:placeholder="$t('calendar.recordFeed.prefilterPlaceholder')"
/>
</b-form-group>
</template>
</template>
</div>