Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mySkill-x
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
angular
mySkill-x
Commits
eb2ea248
Commit
eb2ea248
authored
Apr 09, 2025
by
Nakarin Luankla
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
UPDATE ปรับรายละเอียดเมื่อทำการกดรูปโปรไฟล์
parent
9e34f55b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
1 deletions
+19
-1
header.component.html
src/app/shared/components/header/header.component.html
+1
-1
header.component.ts
src/app/shared/components/header/header.component.ts
+18
-0
No files found.
src/app/shared/components/header/header.component.html
View file @
eb2ea248
...
...
@@ -711,7 +711,7 @@
</div>
<div>
<p
class=
"ti-dropdown-header-title !text-white"
>
{{t
okenService.getUser().user?tokenService.getUser().user
:''}}
{{t
his.employeeProfile.thFullName?this.employeeProfile.thFullName
:''}}
</p>
<p
class=
"ti-dropdown-header-content !text-white/50 "
style=
"font-size: 12px;"
>
{{tokenService.getUser().iss?tokenService.getUser().iss:''}}
...
...
src/app/shared/components/header/header.component.ts
View file @
eb2ea248
...
...
@@ -3,6 +3,8 @@ import { Component, ElementRef } from '@angular/core';
import
{
NavService
}
from
'../../services/navservice'
;
import
{
AuthService
}
from
'../../services/auth.service'
;
import
{
TokenService
}
from
'../../services/token.service'
;
import
{
EmployeeService
}
from
'../../services/employee.service'
;
import
{
EmployeeModel
,
MyEmployeeModel
}
from
'../../model/employee.model'
;
@
Component
({
selector
:
'app-header'
,
...
...
@@ -11,10 +13,26 @@ import { TokenService } from '../../services/token.service';
})
export
class
HeaderComponent
{
employeeProfile
:
EmployeeModel
=
new
MyEmployeeModel
();
constructor
(
public
navServices
:
NavService
,
private
authService
:
AuthService
,
public
tokenService
:
TokenService
,
private
employeeService
:
EmployeeService
,
private
elementRef
:
ElementRef
)
{
this
.
getEvaluatee
();
}
getEvaluatee
()
{
this
.
employeeProfile
=
new
MyEmployeeModel
(
JSON
.
parse
(
sessionStorage
.
getItem
(
'employeeProfile'
)
||
'{}'
));
if
(
this
.
employeeProfile
?.
employeeId
==
undefined
||
this
.
employeeProfile
?.
employeeId
==
null
||
this
.
employeeProfile
?.
employeeId
==
''
){
this
.
employeeService
.
getWorking
().
subscribe
({
next
:
response
=>
{
sessionStorage
.
setItem
(
'employeeProfile'
,
JSON
.
stringify
(
response
));
this
.
employeeProfile
=
new
MyEmployeeModel
(
response
)
}
})
}
}
logOut
()
{
...
...
Write
Preview
Markdown
is supported
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