Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
web-et-numerique
web-et-numerique-internet
data.grandlyon.com
web-portal
components
custom-apps
web-app
Commits
b4902c36
Commit
b4902c36
authored
Nov 04, 2019
by
ncastejon
Browse files
Fix issue
#153
- Display correctly Drafts if logged in or logged out
parent
f0c9ff03
Pipeline
#1775
passed with stages
in 5 minutes and 1 second
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/app/core/components/main/header/header.component.ts
View file @
b4902c36
...
...
@@ -62,7 +62,7 @@ export class HeaderComponent implements OnInit {
signOut
()
{
this
.
_userService
.
resetAuth
();
this
.
closeUserDropdown
();
this
.
_router
.
navigate
([
'
/
'
,
AppRoutes
.
signin
.
uri
]);
this
.
_router
.
navigate
([
'
/
'
,
AppRoutes
.
home
.
uri
]);
}
closeUserDropdown
()
{
...
...
src/app/core/components/main/side-menu/side-menu.component.ts
View file @
b4902c36
...
...
@@ -52,7 +52,7 @@ export class SideMenuComponent implements OnInit, OnDestroy {
this
.
subscriptions
.
push
(
this
.
_userService
.
userStatusChanged$
.
subscribe
((
isLogged
)
=>
{
this
.
displayAdminBar
=
isLogged
;
this
.
displayAdminBar
=
false
;
this
.
getDrafts
();
}),
);
...
...
src/app/user/services/user.service.ts
View file @
b4902c36
...
...
@@ -41,9 +41,10 @@ export class UserService {
}
resetAuth
()
{
this
.
logout
().
subscribe
();
this
.
_user
=
null
;
this
.
_userStatusChangedSubject
.
next
(
false
);
this
.
logout
().
subscribe
(()
=>
{
this
.
_user
=
null
;
this
.
_userStatusChangedSubject
.
next
(
false
);
});
}
get
user
()
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment