Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
MaarchParapheur
Manage
Activity
Members
Plan
Redmine
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Maarch
MaarchParapheur
Commits
772420bc
Commit
772420bc
authored
4 years ago
by
Alex ORLUC
Browse files
Options
Downloads
Patches
Plain Diff
FEAT #14565 TIME 0:20 WIP multi sign
parent
7c1557b9
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/frontend/app/service/actions.service.ts
+1
-0
1 addition, 0 deletions
src/frontend/app/service/actions.service.ts
src/frontend/app/service/signature-method/signature-method-modal.component.ts
+4
-0
4 additions, 0 deletions
...vice/signature-method/signature-method-modal.component.ts
with
5 additions
and
0 deletions
src/frontend/app/service/actions.service.ts
+
1
−
0
View file @
772420bc
...
@@ -95,6 +95,7 @@ export class ActionsService {
...
@@ -95,6 +95,7 @@ export class ActionsService {
.
pipe
(
.
pipe
(
tap
((
res
:
any
)
=>
{
tap
((
res
:
any
)
=>
{
if
(
eSignature
!==
null
)
{
if
(
eSignature
!==
null
)
{
console
.
log
(
res
);
const
objSignData
=
{
const
objSignData
=
{
hashDocument
:
res
.
dataToSign
,
hashDocument
:
res
.
dataToSign
,
signatureContentLength
:
res
.
signatureContentLength
,
signatureContentLength
:
res
.
signatureContentLength
,
...
...
This diff is collapsed.
Click to expand it.
src/frontend/app/service/signature-method/signature-method-modal.component.ts
+
4
−
0
View file @
772420bc
...
@@ -145,14 +145,18 @@ export class SignatureMethodModalComponent implements OnInit {
...
@@ -145,14 +145,18 @@ export class SignatureMethodModalComponent implements OnInit {
while
(
!
allSignaturesComplete
)
{
while
(
!
allSignaturesComplete
)
{
let
signDocComplete
:
any
=
false
;
let
signDocComplete
:
any
=
false
;
while
(
signDocComplete
===
false
)
{
while
(
signDocComplete
===
false
)
{
console
.
log
(
'
recupération hashDocument
'
);
res
=
await
this
.
actionsService
.
sendDocument
(
this
.
note
,
this
.
certificate
,
this
.
signatureLength
,
res
.
tmpUniqueId
);
res
=
await
this
.
actionsService
.
sendDocument
(
this
.
note
,
this
.
certificate
,
this
.
signatureLength
,
res
.
tmpUniqueId
);
console
.
log
(
'
res hashDocument
'
,
res
);
if
(
res
===
null
)
{
if
(
res
===
null
)
{
return
false
;
return
false
;
}
else
if
(
res
!==
false
)
{
}
else
if
(
res
!==
false
)
{
console
.
log
(
'
signature document
'
);
signDocComplete
=
await
this
.
signDocument
(
res
.
hashDocument
,
res
.
signatureContentLength
,
res
.
signatureFieldName
);
signDocComplete
=
await
this
.
signDocument
(
res
.
hashDocument
,
res
.
signatureContentLength
,
res
.
signatureFieldName
);
if
(
signDocComplete
)
{
if
(
signDocComplete
)
{
this
.
signaturesService
.
signaturesContent
.
shift
();
this
.
signaturesService
.
signaturesContent
.
shift
();
allSignaturesComplete
=
this
.
signaturesService
.
signaturesContent
.
length
===
0
;
allSignaturesComplete
=
this
.
signaturesService
.
signaturesContent
.
length
===
0
;
res
=
{};
}
}
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment