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
09ff8b0d
Commit
09ff8b0d
authored
Jun 18, 2020
by
Muhammad Usman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Username to email update
parent
d0c77e3c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
14 deletions
+13
-14
home.component.ts
...components/my-career-web/dashboard/home/home.component.ts
+1
-3
personal-details.component.ts
.../dashboard/personal-details/personal-details.component.ts
+1
-0
profile-tasks.component.ts
...er-web/dashboard/profile-tasks/profile-tasks.component.ts
+11
-11
No files found.
frontend/angular/src/app/components/my-career-web/dashboard/home/home.component.ts
View file @
09ff8b0d
...
@@ -5,7 +5,6 @@ import { PersonalDetailsService } from '../../services/personal-details.service'
...
@@ -5,7 +5,6 @@ import { PersonalDetailsService } from '../../services/personal-details.service'
import
{
CareerProfileModel
}
from
'../../models/career-profile.model'
;
import
{
CareerProfileModel
}
from
'../../models/career-profile.model'
;
import
{
UtilsService
}
from
'../../../../oneit/services/utils.service'
;
import
{
UtilsService
}
from
'../../../../oneit/services/utils.service'
;
import
{
HelperService
}
from
'../../services/helper.service'
;
import
{
HelperService
}
from
'../../services/helper.service'
;
import
{
ToasterService
}
from
'../../services/toaster.service'
;
@
Component
({
@
Component
({
selector
:
'app-home'
,
selector
:
'app-home'
,
...
@@ -21,8 +20,7 @@ export class HomeComponent extends BaseComponent implements OnInit {
...
@@ -21,8 +20,7 @@ export class HomeComponent extends BaseComponent implements OnInit {
constructor
(
constructor
(
private
ps
:
PersonalDetailsService
,
private
ps
:
PersonalDetailsService
,
private
hs
:
HelperService
,
private
hs
:
HelperService
,
private
us
:
UtilsService
,
private
us
:
UtilsService
private
ts
:
ToasterService
)
{
)
{
super
();
super
();
}
}
...
...
frontend/angular/src/app/components/my-career-web/dashboard/personal-details/personal-details.component.ts
View file @
09ff8b0d
...
@@ -106,6 +106,7 @@ export class PersonalDetailsComponent extends BaseComponent implements OnInit {
...
@@ -106,6 +106,7 @@ export class PersonalDetailsComponent extends BaseComponent implements OnInit {
if
(
this
.
form
.
invalid
)
{
if
(
this
.
form
.
invalid
)
{
return
;
return
;
}
}
this
.
careerProfile
.
Candidate
.
User
.
UserName
=
this
.
careerProfile
.
Candidate
.
User
.
Email
;
this
.
isSaving
=
true
;
this
.
isSaving
=
true
;
this
.
ps
.
saveProfile
(
this
.
createdObjs
,
this
.
updatedObjs
,
this
.
deletedObjs
)
this
.
ps
.
saveProfile
(
this
.
createdObjs
,
this
.
updatedObjs
,
this
.
deletedObjs
)
.
pipe
(
takeUntil
(
this
.
componentInView
))
.
pipe
(
takeUntil
(
this
.
componentInView
))
...
...
frontend/angular/src/app/components/my-career-web/dashboard/profile-tasks/profile-tasks.component.ts
View file @
09ff8b0d
...
@@ -33,17 +33,17 @@ export class ProfileTasksComponent extends BaseComponent {
...
@@ -33,17 +33,17 @@ export class ProfileTasksComponent extends BaseComponent {
}
}
setProfileCompletion
():
void
{
setProfileCompletion
():
void
{
const
percentage
=
(
this
.
careerProfile
.
CompletedPercentage
||
0
)
*
3.6
;
//
const percentage = (this.careerProfile.CompletedPercentage || 0) * 3.6;
for
(
let
i
=
0
;
i
<=
percentage
;
i
++
)
{
//
for (let i = 0; i <= percentage; i++) {
if
(
percentage
===
360
)
{
//
if (percentage === 360) {
this
.
backgroundColor
=
'#1DBA3C'
;
//
this.backgroundColor = '#1DBA3C';
this
.
avatarBorder
=
`linear-gradient(
${
90
+
percentage
}
deg, transparent 50%, #1DBA3C 50%),linear-gradient(90deg, #1DBA3C 50%, transparent 50%)`
;
//
this.avatarBorder = `linear-gradient(${90 + percentage}deg, transparent 50%, #1DBA3C 50%),linear-gradient(90deg, #1DBA3C 50%, transparent 50%)`;
}
else
if
(
percentage
<=
180
){
//
} else if (percentage<=180){
this
.
avatarBorder
=
`linear-gradient(
${
90
+
percentage
}
deg, transparent 50%, #EAECEE 50%),linear-gradient(90deg, #EAECEE 50%, transparent 50%)`
;
//
this.avatarBorder = `linear-gradient(${90 + percentage}deg, transparent 50%, #EAECEE 50%),linear-gradient(90deg, #EAECEE 50%, transparent 50%)`;
}
else
{
//
} else {
this
.
avatarBorder
=
`linear-gradient(
${
percentage
-
90
}
deg, transparent 50%, #1469A2 50%),linear-gradient(90deg, #EAECEE 50%, transparent 50%)`
;
//
this.avatarBorder = `linear-gradient(${percentage - 90}deg, transparent 50%, #1469A2 50%),linear-gradient(90deg, #EAECEE 50%, transparent 50%)`;
}
//
}
}
//
}
}
}
}
}
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