adjsut sign yourself

This commit is contained in:
Pete Matsyburka
2026-02-21 10:17:58 +02:00
parent 231fff5508
commit 5073f2eefb
2 changed files with 12 additions and 2 deletions
+11 -1
View File
@@ -81,7 +81,7 @@
/>
<template v-else>
<form
v-if="withSignYourselfButton && template.submitters.length < 2"
v-if="withSignYourselfButton && undefinedSubmitters.length < 2"
target="_blank"
data-turbo="false"
class="inline"
@@ -938,6 +938,16 @@ export default {
language () {
return this.locale.split('-')[0].toLowerCase()
},
undefinedSubmitters () {
return this.template.submitters.filter((submitter) => {
return !submitter.invite_by_uuid &&
!submitter.optional_invite_by_uuid &&
!submitter.invite_via_field_uuid &&
!submitter.linked_to_uuid &&
!submitter.is_requester &&
!submitter.email
})
},
withPrefillable () {
if (this.template.fields) {
return this.template.fields.some((f) => f.prefillable)