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
df4392e0
Commit
df4392e0
authored
2 years ago
by
Jean-Laurent DUZANT
Browse files
Options
Downloads
Patches
Plain Diff
FIX #21979 TIME 0 add finish fortify api when component is destroyed
parent
cf84e69f
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
+9
-2
9 additions, 2 deletions
...vice/signature-method/signature-method-modal.component.ts
with
9 additions
and
2 deletions
src/frontend/app/service/signature-method/signature-method-modal.component.ts
+
9
−
2
View file @
df4392e0
import
{
Component
,
Input
,
OnInit
}
from
'
@angular/core
'
;
import
{
Component
,
Input
,
OnInit
,
OnDestroy
}
from
'
@angular/core
'
;
import
{
LoadingController
,
ModalController
}
from
'
@ionic/angular
'
;
import
{
catchError
,
tap
}
from
'
rxjs/operators
'
;
import
{
of
}
from
'
rxjs
'
;
...
...
@@ -17,7 +17,7 @@ import { FortifyAPI } from '@peculiar/fortify-client-core';
templateUrl
:
'
signature-method-modal.component.html
'
,
styleUrls
:
[
'
./signature-method-modal.component.scss
'
]
})
export
class
SignatureMethodModalComponent
implements
OnInit
{
export
class
SignatureMethodModalComponent
implements
OnInit
,
OnDestroy
{
@
Input
()
note
:
string
;
@
Input
()
signatureMode
:
string
;
...
...
@@ -71,6 +71,13 @@ export class SignatureMethodModalComponent implements OnInit {
await
this
.
initFortify
();
}
async
ngOnDestroy
():
Promise
<
void
>
{
if
(
!
this
.
functionsService
.
empty
(
this
.
api
))
{
this
.
api
.
finish
();
this
.
api
=
null
;
}
}
async
initFortify
()
{
this
.
api
=
new
FortifyAPI
(
null
);
...
...
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