Merge pull request #44 from CareerPlug/CP-12029-hide-pro-btn

CP-12029 / hide pro btn
pull/608/head
Julie Graceffa 2 months ago committed by GitHub
commit b7800246f9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -18,16 +18,6 @@
>&times;</a> >&times;</a>
</div> </div>
<div> <div>
<div
v-if="!withConditions"
class="bg-base-300 rounded-xl py-2 px-3 text-center"
>
<a
href="https://www.docuseal.com/pricing"
target="_blank"
class="link"
>{{ t('available_in_pro') }}</a>
</div>
<form @submit.prevent="validateSaveAndClose"> <form @submit.prevent="validateSaveAndClose">
<div class="my-4"> <div class="my-4">
<div <div
@ -216,10 +206,6 @@ export default {
return actions return actions
}, },
validateSaveAndClose () { validateSaveAndClose () {
if (!this.withConditions) {
return alert(this.t('available_only_in_pro'))
}
if (this.conditions.find((f) => f.field_uuid)) { if (this.conditions.find((f) => f.field_uuid)) {
this.item.conditions = this.conditions this.item.conditions = this.conditions
} else { } else {

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

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

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

Loading…
Cancel
Save