Fixed regression: missing target field

This commit is contained in:
Stefan Zermatten
2023-05-17 13:22:58 +02:00
parent 862e25eb0c
commit 1795316664
2 changed files with 36 additions and 5 deletions

View File

@@ -69,7 +69,7 @@
@change="changeTargetByTags"
/>
<v-slide-x-transition mode="out-in">
<v-slide-y-transition hide-on-leave>
<smart-combobox
v-if="!model.targetByTags"
label="Stats"
@@ -92,10 +92,25 @@
@push="e => $emit('push', e)"
@pull="e => $emit('pull', e)"
/>
</v-slide-x-transition>
</v-slide-y-transition>
<v-expand-transition>
<v-col
v-if="model.targetByTags"
cols="12"
>
<text-field
label="Target field"
:value="model.targetField"
hint="Target a specific calculation field on the affected properties"
placeholder="Default field"
persistent-placeholder
:error-messages="errors.targetField"
@change="change('targetField', ...arguments)"
/>
</v-col>
</v-expand-transition>
<form-sections
v-if="$slots.default"
class="mt-4"
>
<slot />
</form-sections>

View File

@@ -34,7 +34,7 @@
<v-col
cols="12"
>
<v-slide-x-transition mode="out-in">
<v-slide-y-transition hide-on-leave>
<tag-targeting
v-if="model.targetByTags"
:model="model"
@@ -56,8 +56,24 @@
:error-messages="errors.stats"
@change="change('stats', ...arguments)"
/>
</v-slide-x-transition>
</v-slide-y-transition>
</v-col>
<v-expand-transition>
<v-col
v-if="model.targetByTags"
cols="12"
>
<text-field
label="Target field"
:value="model.targetField"
hint="Target a specific calculation field on the affected properties"
placeholder="Default field"
persistent-placeholder
:error-messages="errors.targetField"
@change="change('targetField', ...arguments)"
/>
</v-col>
</v-expand-transition>
</v-row>
<form-sections
v-if="$slots.default"