mirror of
https://github.com/docusealco/docuseal
synced 2026-11-07 23:32:33 -05:00
template builder adjustments
This commit is contained in:
1 parent
7ccafa49bf
commit
00e3ee15ef
8 files changed
+102
-34
No files matched your search
@@ -14,7 +14,7 @@
|
||||
<label
|
||||
v-else
|
||||
tabindex="0"
|
||||
class="rounded-md p-2 border border-base-300 w-full flex justify-between"
|
||||
class="cursor-pointer rounded-md p-2 border border-base-300 w-full flex justify-between"
|
||||
>
|
||||
<div class="flex items-center space-x-2">
|
||||
<span
|
||||
@@ -23,6 +23,7 @@
|
||||
/>
|
||||
<Contenteditable
|
||||
v-model="selectedSubmitter.name"
|
||||
class="cursor-text"
|
||||
:icon-inline="true"
|
||||
:icon-width="18"
|
||||
/>
|
||||
@@ -126,6 +127,15 @@ export default {
|
||||
'bg-purple-600'
|
||||
]
|
||||
},
|
||||
names () {
|
||||
return [
|
||||
'First Submitter',
|
||||
'Second Submitter',
|
||||
'Third Submitter',
|
||||
'Fourth Submitter',
|
||||
'Fifth Submitter'
|
||||
]
|
||||
},
|
||||
selectedSubmitter () {
|
||||
return this.submitters.find((e) => e.uuid === this.modelValue)
|
||||
}
|
||||
@@ -141,7 +151,7 @@ export default {
|
||||
},
|
||||
addSubmitter () {
|
||||
const newSubmitter = {
|
||||
name: `Submitter ${this.submitters.length + 1}`,
|
||||
name: this.names[this.submitters.length],
|
||||
uuid: v4()
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user