Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
PERFORMA_REPLICA
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
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
Muhammad Usman
PERFORMA_REPLICA
Commits
55c76d4f
Commit
55c76d4f
authored
Jun 30, 2020
by
Muhammad Usman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dashboard icon fixes
parent
601c3af5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
41 additions
and
5 deletions
+41
-5
dashboard.component.html
...y-career-web/dashboard/dashboard/dashboard.component.html
+2
-0
dashboard.component.ts
.../my-career-web/dashboard/dashboard/dashboard.component.ts
+12
-2
left-sidebar.component.html
...er-web/dashboard/left-sidebar/left-sidebar.component.html
+9
-0
left-sidebar.component.ts
...reer-web/dashboard/left-sidebar/left-sidebar.component.ts
+17
-3
career-profile.model.ts
...p/components/my-career-web/models/career-profile.model.ts
+1
-0
No files found.
frontend/angular/src/app/components/my-career-web/dashboard/dashboard/dashboard.component.html
View file @
55c76d4f
...
@@ -52,6 +52,8 @@
...
@@ -52,6 +52,8 @@
</div>
</div>
<div
class=
"mobile-nav-link"
style=
"margin-top: 40px;"
(
click
)="
logout
()"
><i
[
ngClass
]="
isLoading
?
'
fa
fa-spin
fa-spinner
'
:
'
fa
fa-sign-out
'"
></i>
Logout
</div>
<div
class=
"mobile-nav-link"
style=
"margin-top: 40px;"
(
click
)="
logout
()"
><i
[
ngClass
]="
isLoading
?
'
fa
fa-spin
fa-spinner
'
:
'
fa
fa-sign-out
'"
></i>
Logout
</div>
<a
target=
"_blank"
style=
"display: block;"
[
href
]="
unassumeLink
"
class=
"mobile-nav-link"
><i
class=
"fa fa-reply"
></i>
Unassume
</a>
</div>
</div>
</div>
</div>
</div>
</div>
...
...
frontend/angular/src/app/components/my-career-web/dashboard/dashboard/dashboard.component.ts
View file @
55c76d4f
...
@@ -3,6 +3,9 @@ import { Router } from '@angular/router';
...
@@ -3,6 +3,9 @@ import { Router } from '@angular/router';
import
{
BaseComponent
}
from
'../../base/base.component'
;
import
{
BaseComponent
}
from
'../../base/base.component'
;
import
{
AuthService
}
from
'../../services/auth.service'
;
import
{
AuthService
}
from
'../../services/auth.service'
;
import
{
takeUntil
}
from
'rxjs/operators'
;
import
{
takeUntil
}
from
'rxjs/operators'
;
import
{
PersonalDetailsService
}
from
'../../services/personal-details.service'
;
import
{
CareerProfileModel
}
from
'../../models/career-profile.model'
;
import
{
environment
}
from
'../../../../../environments/environment'
;
@
Component
({
@
Component
({
selector
:
'app-dashboard'
,
selector
:
'app-dashboard'
,
...
@@ -12,16 +15,23 @@ import { takeUntil } from 'rxjs/operators';
...
@@ -12,16 +15,23 @@ import { takeUntil } from 'rxjs/operators';
export
class
DashboardComponent
extends
BaseComponent
implements
OnInit
{
export
class
DashboardComponent
extends
BaseComponent
implements
OnInit
{
showMobileNav
;
showMobileNav
;
careerProfile
=
new
CareerProfileModel
();
unassumeLink
=
`
${
environment
.
baseUrl
}
unassume_mc.jsp`
;
constructor
(
constructor
(
private
as
:
AuthService
,
private
as
:
AuthService
,
private
r
:
Router
private
r
:
Router
,
private
ps
:
PersonalDetailsService
)
{
)
{
super
();
super
();
}
}
ngOnInit
():
void
{
ngOnInit
():
void
{
//
this
.
ps
.
careerProfileUpdated$
.
pipe
(
takeUntil
(
this
.
componentInView
))
.
subscribe
(
response
=>
{
this
.
careerProfile
=
response
;
});
}
}
goToPage
(
route
):
void
{
goToPage
(
route
):
void
{
...
...
frontend/angular/src/app/components/my-career-web/dashboard/left-sidebar/left-sidebar.component.html
View file @
55c76d4f
...
@@ -64,6 +64,15 @@
...
@@ -64,6 +64,15 @@
Logout
Logout
</span>
</span>
</div>
</div>
<a
class=
"sidebar-navigation-item"
*
ngIf=
"careerProfile.AssumedUser"
target=
"_blank"
[
href
]="
unassumeLink
"
>
<span
class=
"sidebar-navigation-item-icon"
>
<i
class=
"fa fa-reply"
></i>
</span>
<span
class=
"sidebar-navigation-item-text"
>
Unassume
</span>
</a>
</div>
</div>
<div
class=
"footer-label"
>
<div
class=
"footer-label"
>
...
...
frontend/angular/src/app/components/my-career-web/dashboard/left-sidebar/left-sidebar.component.ts
View file @
55c76d4f
import
{
Component
}
from
'@angular/core'
;
import
{
Component
,
OnInit
}
from
'@angular/core'
;
import
{
takeUntil
}
from
'rxjs/operators'
;
import
{
takeUntil
}
from
'rxjs/operators'
;
import
{
AuthService
}
from
'../../services/auth.service'
;
import
{
AuthService
}
from
'../../services/auth.service'
;
import
{
Router
}
from
'@angular/router'
;
import
{
Router
}
from
'@angular/router'
;
import
{
BaseComponent
}
from
'../../base/base.component'
;
import
{
BaseComponent
}
from
'../../base/base.component'
;
import
{
EXTERNAL_LINKS
}
from
'../../config/constants'
;
import
{
EXTERNAL_LINKS
}
from
'../../config/constants'
;
import
{
PersonalDetailsService
}
from
'../../services/personal-details.service'
;
import
{
CareerProfileModel
}
from
'../../models/career-profile.model'
;
import
{
environment
}
from
'../../../../../environments/environment'
;
@
Component
({
@
Component
({
selector
:
'app-left-sidebar'
,
selector
:
'app-left-sidebar'
,
templateUrl
:
'./left-sidebar.component.html'
,
templateUrl
:
'./left-sidebar.component.html'
,
styleUrls
:
[
'./left-sidebar.component.scss'
]
styleUrls
:
[
'./left-sidebar.component.scss'
]
})
})
export
class
LeftSidebarComponent
extends
BaseComponent
{
export
class
LeftSidebarComponent
extends
BaseComponent
implements
OnInit
{
year
=
new
Date
().
getFullYear
();
year
=
new
Date
().
getFullYear
();
showPremium
=
false
;
showPremium
=
false
;
careerProfile
=
new
CareerProfileModel
();
unassumeLink
=
`
${
environment
.
baseUrl
}
unassume_mc.jsp`
;
constructor
(
constructor
(
private
as
:
AuthService
,
private
as
:
AuthService
,
private
r
:
Router
private
r
:
Router
,
private
ps
:
PersonalDetailsService
)
{
)
{
super
();
super
();
}
}
ngOnInit
():
void
{
this
.
ps
.
careerProfileUpdated$
.
pipe
(
takeUntil
(
this
.
componentInView
))
.
subscribe
(
response
=>
{
this
.
careerProfile
=
response
;
});
}
logout
():
void
{
logout
():
void
{
this
.
isLoading
=
true
;
this
.
isLoading
=
true
;
this
.
as
.
logout
()
this
.
as
.
logout
()
...
...
frontend/angular/src/app/components/my-career-web/models/career-profile.model.ts
View file @
55c76d4f
...
@@ -25,4 +25,5 @@ export class CareerProfileModel extends BaseModel {
...
@@ -25,4 +25,5 @@ export class CareerProfileModel extends BaseModel {
NoEducationQualification
:
boolean
;
NoEducationQualification
:
boolean
;
NoReference
:
boolean
;
NoReference
:
boolean
;
PublishProfile
:
boolean
;
PublishProfile
:
boolean
;
AssumedUser
:
boolean
;
}
}
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