mirror of
https://github.com/docusealco/docuseal
synced 2026-11-04 14:42:32 -05:00
fix dropdowns
This commit is contained in:
1 parent
1999611b26
commit
7e8375aee8
9 files changed
+64
-45
No files matched your search
@@ -126,7 +126,7 @@ export default {
|
||||
IconLogin,
|
||||
IconDownload
|
||||
},
|
||||
inject: ['baseUrl', 't', 'nativePlatform'],
|
||||
inject: ['baseUrl', 't'],
|
||||
props: {
|
||||
submitterSlug: {
|
||||
type: String,
|
||||
@@ -186,6 +186,11 @@ export default {
|
||||
type: Object,
|
||||
required: false,
|
||||
default: () => ({})
|
||||
},
|
||||
nativePlatform: {
|
||||
type: String,
|
||||
required: false,
|
||||
default: ''
|
||||
}
|
||||
},
|
||||
data () {
|
||||
|
||||
@@ -503,6 +503,7 @@
|
||||
:with-qr-button="withQrButton"
|
||||
:submitter="submitter"
|
||||
:show-field-names="showFieldNames"
|
||||
:native-platform="nativePlatform"
|
||||
@update:reason="values[currentField.preferences?.reason_field_uuid] = $event"
|
||||
@touch-attachment="attachmentsIndex[previousSignatureValue] ? attachmentsIndex[previousSignatureValue].created_at = new Date() : null"
|
||||
@attached="attachments.push($event)"
|
||||
@@ -521,6 +522,7 @@
|
||||
:attachments-index="attachmentsIndex"
|
||||
:show-field-names="showFieldNames"
|
||||
:submitter-slug="submitterSlug"
|
||||
:native-platform="nativePlatform"
|
||||
@attached="attachments.push($event)"
|
||||
@start="scrollIntoField(currentField)"
|
||||
@focus="scrollIntoField(currentField)"
|
||||
@@ -652,6 +654,7 @@
|
||||
:with-confetti="withConfetti"
|
||||
:can-send-email="canSendEmail && !!submitter.email"
|
||||
:submitter-slug="submitterSlug"
|
||||
:native-platform="nativePlatform"
|
||||
/>
|
||||
<nav
|
||||
v-if="stepFields.length < 80"
|
||||
@@ -774,7 +777,6 @@ export default {
|
||||
baseUrl: this.baseUrl,
|
||||
scrollIntoArea: this.scrollIntoArea,
|
||||
scrollIntoField: this.scrollIntoField,
|
||||
nativePlatform: this.nativePlatform,
|
||||
t: this.t
|
||||
}
|
||||
},
|
||||
|
||||
@@ -236,6 +236,11 @@ export default {
|
||||
required: false,
|
||||
default: ''
|
||||
},
|
||||
nativePlatform: {
|
||||
type: String,
|
||||
required: false,
|
||||
default: ''
|
||||
},
|
||||
modelValue: {
|
||||
type: String,
|
||||
required: false,
|
||||
|
||||
@@ -376,7 +376,7 @@ export default {
|
||||
IconSignature,
|
||||
IconArrowsDiagonalMinimize2
|
||||
},
|
||||
inject: ['baseUrl', 't', 'nativePlatform'],
|
||||
inject: ['baseUrl', 't'],
|
||||
props: {
|
||||
field: {
|
||||
type: Object,
|
||||
@@ -460,6 +460,11 @@ export default {
|
||||
required: false,
|
||||
default: ''
|
||||
},
|
||||
nativePlatform: {
|
||||
type: String,
|
||||
required: false,
|
||||
default: ''
|
||||
},
|
||||
modelValue: {
|
||||
type: String,
|
||||
required: false,
|
||||
|
||||
@@ -224,7 +224,7 @@
|
||||
@update:model-value="updateName"
|
||||
/>
|
||||
</div>
|
||||
<div class="space-x-3 flex items-center flex-shrink-0">
|
||||
<div class="flex items-center gap-3 flex-shrink-0">
|
||||
<slot
|
||||
v-if="$slots.buttons"
|
||||
name="buttons"
|
||||
@@ -405,11 +405,11 @@
|
||||
tabindex="0"
|
||||
class="dropdown-content p-2 mt-2 shadow menu text-base bg-base-100 rounded-box text-right"
|
||||
>
|
||||
<li>
|
||||
<native-action
|
||||
:data-label="t('save_and_preview')"
|
||||
data-icon="eye"
|
||||
>
|
||||
<native-action
|
||||
:data-label="t('save_and_preview')"
|
||||
data-icon="eye"
|
||||
>
|
||||
<li>
|
||||
<a
|
||||
:href="`/templates/${template.id}/form`"
|
||||
:data-native-actions="template.submitters.length > 1 ? 'users' : null"
|
||||
@@ -427,13 +427,13 @@
|
||||
/>
|
||||
<span class="whitespace-nowrap">{{ t('save_and_preview') }}</span>
|
||||
</a>
|
||||
</native-action>
|
||||
</li>
|
||||
<li>
|
||||
<native-action
|
||||
:data-label="t('preferences')"
|
||||
data-icon="adjustments_horizontal"
|
||||
>
|
||||
</li>
|
||||
</native-action>
|
||||
<native-action
|
||||
:data-label="t('preferences')"
|
||||
data-icon="adjustments_horizontal"
|
||||
>
|
||||
<li>
|
||||
<a
|
||||
:href="`/templates/${template.id}/preferences`"
|
||||
:data-turbo-frame="!nativePlatform && isMobile && isBreakpointLg ? '_top' : 'modal'"
|
||||
@@ -443,13 +443,14 @@
|
||||
<IconAdjustments class="w-6 h-6 flex-shrink-0" />
|
||||
<span class="whitespace-nowrap">{{ t('preferences') }}</span>
|
||||
</a>
|
||||
</native-action>
|
||||
</li>
|
||||
<li v-if="withRevisionsMenu">
|
||||
<native-action
|
||||
:data-label="t('revisions')"
|
||||
data-icon="history"
|
||||
>
|
||||
</li>
|
||||
</native-action>
|
||||
<native-action
|
||||
v-if="withRevisionsMenu"
|
||||
:data-label="t('revisions')"
|
||||
data-icon="history"
|
||||
>
|
||||
<li>
|
||||
<button
|
||||
class="flex space-x-2"
|
||||
@click.prevent="openRevisionsModal"
|
||||
@@ -460,13 +461,14 @@
|
||||
</span>
|
||||
<span class="whitespace-nowrap">{{ t('revisions') }}</span>
|
||||
</button>
|
||||
</native-action>
|
||||
</li>
|
||||
<li v-if="withDownload">
|
||||
<native-action
|
||||
:data-label="t('download')"
|
||||
data-icon="download"
|
||||
>
|
||||
</li>
|
||||
</native-action>
|
||||
<native-action
|
||||
v-if="withDownload"
|
||||
:data-label="t('download')"
|
||||
data-icon="download"
|
||||
>
|
||||
<li>
|
||||
<button
|
||||
class="flex space-x-2"
|
||||
:disabled="isDownloading"
|
||||
@@ -489,8 +491,8 @@
|
||||
class="whitespace-nowrap"
|
||||
>{{ t('download') }}</span>
|
||||
</button>
|
||||
</native-action>
|
||||
</li>
|
||||
</li>
|
||||
</native-action>
|
||||
</ul>
|
||||
</div>
|
||||
</span>
|
||||
|
||||
Reference in new issue
Block a user