add condition logic

pull/608/head
Julie Graceffa 2 months ago
parent 9b70580d1c
commit 7f086d1daa

@ -78,7 +78,7 @@
:stroke-width="1.6"
/>
</button>
<button
<!-- <button
v-if="field.conditions?.length"
class="relative cursor-pointer text-transparent group-hover:text-base-content"
:title="t('condition')"
@ -88,7 +88,7 @@
:width="18"
:stroke-width="1.6"
/>
</button>
</button> -->
<PaymentSettings
v-if="field.type === 'payment'"
:field="field"
@ -129,7 +129,6 @@
@click-formula="isShowFormulaModal = true"
@click-font="isShowFontModal = true"
@click-description="isShowDescriptionModal = true"
@click-condition="isShowConditionsModal = true"
@set-draw="$emit('set-draw', $event)"
@remove-area="removeArea"
@scroll-to="$emit('scroll-to', $event)"

@ -392,7 +392,7 @@
</span>
</label>
</li>
<li
<!-- <li
v-if="field.type != 'stamp'"
>
<label
@ -406,7 +406,7 @@
{{ t('condition') }}
</span>
</label>
</li>
</li> -->
<li v-if="field.type == 'number'">
<label
class="label-text cursor-pointer text-center w-full flex items-center"

@ -16,7 +16,8 @@
v-if="editable"
class="flex justify-between w-full"
>
<div
<!-- HIDING CONDITIONAL LOGIC FOR DOCUSEAL PRO - 1/22/2026 -->
<!-- <div
style="width: 26px"
class="flex flex-col justify-between group-hover:opacity-100"
:class="{'opacity-0': !item.conditions?.length }"
@ -32,7 +33,7 @@
/>
</button>
</div>
</div>
</div> -->
<div class="">
<ReplaceButton
v-if="withReplaceButton"
@ -120,7 +121,7 @@
<script>
import Contenteditable from './contenteditable'
import Upload from './upload'
import { IconRouteAltLeft, IconSortDescending2 } from '@tabler/icons-vue'
import { IconSortDescending2 } from '@tabler/icons-vue'
import ConditionsModal from './conditions_modal'
import ReplaceButton from './replace'
import Field from './field'
@ -130,7 +131,6 @@ export default {
name: 'DocumentPreview',
components: {
Contenteditable,
IconRouteAltLeft,
ConditionsModal,
ReplaceButton,
IconSortDescending2

Loading…
Cancel
Save