no_resign_ok
This commit is contained in:
parent
18cc913c21
commit
48b6a42cab
@ -563,7 +563,8 @@ function showProcessDetails(group: Group, groupId: number) {
|
||||
|
||||
// Ajouter le bouton de signature pour tous les documents non vierges en mode dev
|
||||
const signButton = !isVierge ? `
|
||||
${totalSignatures > 0 && signedCount < totalSignatures ? `
|
||||
${totalSignatures > 0 && signedCount < totalSignatures &&
|
||||
!document.signatures.find((sig: DocumentSignature) => sig.member.name === currentUser.name && sig.signed) ? `
|
||||
<button class="sign-button" onclick="signDocument(${document.id}, ${groupId}, true)">
|
||||
Signer le document
|
||||
</button>
|
||||
@ -632,7 +633,9 @@ function showProcessDetails(group: Group, groupId: number) {
|
||||
|
||||
// Ajouter le bouton de signature pour tous les documents non vierges en mode dev
|
||||
const signButton = !isVierge ? `
|
||||
${document.signatures.length > 0 && document.signatures.filter((sig: DocumentSignature) => sig.signed).length < document.signatures.length ? `
|
||||
${document.signatures.length > 0 &&
|
||||
document.signatures.filter((sig: DocumentSignature) => sig.signed).length < document.signatures.length &&
|
||||
!document.signatures.find((sig: DocumentSignature) => sig.member.name === currentUser.name && sig.signed) ? `
|
||||
<button class="sign-button" onclick="signDocument(${document.id}, ${groupId}, false)">
|
||||
Signer le document
|
||||
</button>
|
||||
@ -1580,7 +1583,7 @@ function signDocument(documentId: number, processId: number, isCommonDocument: b
|
||||
<span class="file-icon">📄</span>
|
||||
<span class="file-name">${file.name}</span>
|
||||
<a href="${file.url}" class="download-link" download="${file.name}">
|
||||
<span class="download-icon">⬇️</span>
|
||||
<span class="download-icon">⬇<EFBFBD><EFBFBD></span>
|
||||
</a>
|
||||
</div>
|
||||
`).join('')
|
||||
|
Loading…
x
Reference in New Issue
Block a user