Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Signature Frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
digital blueprint
Electronic Signature Service
Signature Frontend
Commits
d5a7f363
Commit
d5a7f363
authored
4 years ago
by
Reiter, Christoph
Browse files
Options
Downloads
Patches
Plain Diff
Port to EventBus
parent
d25cfd94
No related branches found
No related tags found
No related merge requests found
Pipeline
#11861
passed with warnings
4 years ago
Stage: test
Stage: deploy
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/vpu-signature-lit-element.js
+4
-5
4 additions, 5 deletions
src/vpu-signature-lit-element.js
vendor/app-shell
+1
-1
1 addition, 1 deletion
vendor/app-shell
vendor/auth
+1
-1
1 addition, 1 deletion
vendor/auth
with
6 additions
and
7 deletions
src/vpu-signature-lit-element.js
+
4
−
5
View file @
d5a7f363
import
{
LitElement
}
from
"
lit-element
"
;
import
{
LitElement
}
from
"
lit-element
"
;
import
*
as
events
from
'
vpu-common
/events.js
'
;
import
{
EventBus
}
from
'
vpu-common
'
;
export
default
class
VPUSignatureLitElement
extends
LitElement
{
export
default
class
VPUSignatureLitElement
extends
LitElement
{
...
@@ -26,14 +26,13 @@ export default class VPUSignatureLitElement extends LitElement {
...
@@ -26,14 +26,13 @@ export default class VPUSignatureLitElement extends LitElement {
this
.
_loginStatus
=
''
;
this
.
_loginStatus
=
''
;
this
.
_loginState
=
[];
this
.
_loginState
=
[];
this
.
_
subscriber
=
new
events
.
EventSubscriber
(
'
vpu-auth-update
'
,
'
vpu-auth-update-request
'
);
this
.
_
bus
=
new
EventBus
(
);
this
.
_updateAuth
=
this
.
_updateAuth
.
bind
(
this
);
this
.
_updateAuth
=
this
.
_updateAuth
.
bind
(
this
);
this
.
_
subscriber
.
subscribe
(
this
.
_updateAuth
);
this
.
_
bus
.
subscribe
(
'
auth-update
'
,
this
.
_updateAuth
);
}
}
disconnectedCallback
()
{
disconnectedCallback
()
{
this
.
_subscriber
.
unsubscribe
(
this
.
_updateAuth
);
this
.
_bus
.
close
();
delete
this
.
_subscriber
;
super
.
disconnectedCallback
();
super
.
disconnectedCallback
();
}
}
...
...
This diff is collapsed.
Click to expand it.
app-shell
@
155ebffe
Compare
4f2fc5e3
...
155ebffe
Subproject commit
4f2fc5e3cea620067b841ad1b4498b3c54ec0983
Subproject commit
155ebffe3c9c9f3992caf794ebf6a8e814b6e1dd
This diff is collapsed.
Click to expand it.
auth
@
4594a220
Compare
f3aa17bc
...
4594a220
Subproject commit
f3aa17bcc
a0c0
4055ad2835ed620146a741a107d
Subproject commit
4594a22095b2a7
a0
6
c0
f91ec0a51a0a55125b356
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