Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
UPSMF
Grievance-Redressal-App
Commits
0ea4784f
Commit
0ea4784f
authored
1 year ago
by
Roopashree L
Browse files
Options
Download
Patches
Plain Diff
removed profile dropdown if user is not logged in
parent
36be513c
main
UAT
dev_fixes_v2
dev_issue_fixes
dev_issue_fixes_v1
development
file_upload_fixes
login_flow_integration
responsiveness_addition
revert-133-environment_configs
revert-59-dev_issue_fixes
uat-release-1.0
uat_issue_fix
3 merge requests
!59
Dev issue fixes
,
!58
Dev Issues
,
!57
DEV issue fixes
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/app/shared/components/header/header.component.html
+1
-1
src/app/shared/components/header/header.component.html
src/app/shared/components/header/header.component.ts
+13
-0
src/app/shared/components/header/header.component.ts
with
14 additions
and
1 deletion
+14
-1
src/app/shared/components/header/header.component.html
+
1
−
1
View file @
0ea4784f
...
...
@@ -3,7 +3,7 @@
<div
class=
"flex flex-column"
>
<img
style=
"width: 17rem;"
src=
"../../assets/images/sunbird_logo.png"
alt=
"UPSMF logo"
>
</div>
<div
class=
"flex flex-column"
>
<div
class=
"flex flex-column"
*ngIf=
"showProfileNavBar"
>
<button
class=
"action-btn"
[matMenuTriggerFor]=
"menu"
>
GJ
</button>
<mat-menu
#menu
="
matMenu
"
>
<button
mat-menu-item
claas=
"profile-cls"
(click)=
"navigateToProfilePage()"
>
...
...
This diff is collapsed.
Click to expand it.
src/app/shared/components/header/header.component.ts
+
13
−
0
View file @
0ea4784f
...
...
@@ -8,10 +8,23 @@ import { AuthService } from 'src/app/core';
styleUrls
:
[
'
./header.component.css
'
]
})
export
class
HeaderComponent
{
private
readonly
TOKEN_KEY
=
'
access_token
'
;
showProfileNavBar
=
false
;
constructor
(
private
router
:
Router
,
private
authService
:
AuthService
){
}
ngOnInit
()
{
const
token
=
this
.
getToken
();
if
(
token
)
{
this
.
showProfileNavBar
=
true
;
}
}
getToken
():
string
|
null
{
return
localStorage
.
getItem
(
this
.
TOKEN_KEY
);
}
navigateToProfilePage
(){
this
.
router
.
navigate
([
'
/user-profile
'
]);
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
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
Menu
Explore
Projects
Groups
Topics
Snippets