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
2e443519
Commit
2e443519
authored
2 years ago
by
Alex ORLUC
Browse files
Options
Downloads
Patches
Plain Diff
FIX #21979 TIME 0:30 loop fortify start when not started
(cherry picked from commit
ced9a7c9
)
parent
b8c85799
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/frontend/app/service/signature-method/signature-method-modal.component.ts
+21
-1
21 additions, 1 deletion
...vice/signature-method/signature-method-modal.component.ts
with
21 additions
and
1 deletion
src/frontend/app/service/signature-method/signature-method-modal.component.ts
+
21
−
1
View file @
2e443519
...
@@ -81,7 +81,8 @@ export class SignatureMethodModalComponent implements OnInit, OnDestroy {
...
@@ -81,7 +81,8 @@ export class SignatureMethodModalComponent implements OnInit, OnDestroy {
async
initFortify
()
{
async
initFortify
()
{
this
.
api
=
new
FortifyAPI
(
null
);
this
.
api
=
new
FortifyAPI
(
null
);
await
this
.
api
.
start
();
await
this
.
waitFortifyStart
();
const
challenge
=
await
this
.
api
.
challenge
();
const
challenge
=
await
this
.
api
.
challenge
();
if
(
challenge
)
{
if
(
challenge
)
{
...
@@ -93,6 +94,25 @@ export class SignatureMethodModalComponent implements OnInit, OnDestroy {
...
@@ -93,6 +94,25 @@ export class SignatureMethodModalComponent implements OnInit, OnDestroy {
.
on
(
'
remove
'
,
(
event
:
any
)
=>
this
.
updateProvider
(
event
));
.
on
(
'
remove
'
,
(
event
:
any
)
=>
this
.
updateProvider
(
event
));
}
}
async
waitFortifyStart
()
{
let
fortifyState
:
boolean
=
false
;
while
(
!
fortifyState
)
{
fortifyState
=
await
this
.
fortifyStart
();
await
new
Promise
(
resolve
=>
setTimeout
(
resolve
,
1000
));
}
}
fortifyStart
():
Promise
<
boolean
>
{
return
new
Promise
(
async
(
resolve
)
=>
{
try
{
await
this
.
api
.
start
();
resolve
(
true
);
}
catch
(
error
)
{
resolve
(
false
);
}
});
}
async
certificateChosen
(
certData
:
any
)
{
async
certificateChosen
(
certData
:
any
)
{
this
.
loadingController
.
create
({
this
.
loadingController
.
create
({
message
:
this
.
translate
.
instant
(
'
lang.processing
'
),
message
:
this
.
translate
.
instant
(
'
lang.processing
'
),
...
...
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