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
acfa0823
Commit
acfa0823
authored
Jul 21, 2020
by
Muhammad Usman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
complete button functionality
parent
ac4ddec0
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
37 additions
and
2 deletions
+37
-2
career-history.component.html
...reer-history/career-history/career-history.component.html
+1
-1
career-history.component.ts
...career-history/career-history/career-history.component.ts
+3
-0
education.component.ts
...r-history/career-history/education/education.component.ts
+2
-0
publish.component.html
...eer-history/career-history/publish/publish.component.html
+1
-1
publish.component.ts
...areer-history/career-history/publish/publish.component.ts
+9
-0
references.component.ts
...history/career-history/references/references.component.ts
+2
-0
skills.component.ts
.../career-history/career-history/skills/skills.component.ts
+2
-0
work-history.component.ts
...ory/career-history/work-history/work-history.component.ts
+2
-0
constants.ts
frontend/angular/src/app/my-career-web/config/constants.ts
+10
-0
personal-details.component.ts
.../mc-shared/personal-details/personal-details.component.ts
+4
-0
career-profile.model.ts
...ular/src/app/my-career-web/models/career-profile.model.ts
+1
-0
No files found.
frontend/angular/src/app/my-career-web/career-history/career-history/career-history.component.html
View file @
acfa0823
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
</div>
</div>
<div
class=
"assessment-body-tabs mc-card career-builder position-relative"
>
<div
class=
"assessment-body-tabs mc-card career-builder position-relative"
*
ngIf=
"careerProfile"
>
<p-tabView
(
onChange
)="
tabChanged
($
event
)"
>
<p-tabView
(
onChange
)="
tabChanged
($
event
)"
>
<p-tabPanel
header=
"1{{isMobileView ? '' : '. Templates'}}"
[
selected
]="
activeTab =
==
'
templates
'"
rightIcon=
"fa fa-check"
[
headerStyleClass
]="
careerProfile
?.
ProfileBulderTabCompletion
?.
TEMPLATES
?
'
completed
'
:
''"
>
<p-tabPanel
header=
"1{{isMobileView ? '' : '. Templates'}}"
[
selected
]="
activeTab =
==
'
templates
'"
rightIcon=
"fa fa-check"
[
headerStyleClass
]="
careerProfile
?.
ProfileBulderTabCompletion
?.
TEMPLATES
?
'
completed
'
:
''"
>
<app-templates></app-templates>
<app-templates></app-templates>
...
...
frontend/angular/src/app/my-career-web/career-history/career-history/career-history.component.ts
View file @
acfa0823
...
@@ -56,6 +56,9 @@ export class CareerHistoryComponent extends BaseComponent implements OnInit {
...
@@ -56,6 +56,9 @@ export class CareerHistoryComponent extends BaseComponent implements OnInit {
.
subscribe
(
response
=>
{
.
subscribe
(
response
=>
{
this
.
isLoading
=
false
;
this
.
isLoading
=
false
;
this
.
careerProfile
=
response
;
this
.
careerProfile
=
response
;
if
(
!
this
.
careerProfile
.
CurrentProfileBuilderTab
)
{
this
.
router
.
navigate
([
'/my-career-web/career-history/templates'
])
}
},
err
=>
{
},
err
=>
{
this
.
isLoading
=
false
;
this
.
isLoading
=
false
;
this
.
utilsService
.
handleError
(
err
);
this
.
utilsService
.
handleError
(
err
);
...
...
frontend/angular/src/app/my-career-web/career-history/career-history/education/education.component.ts
View file @
acfa0823
...
@@ -10,6 +10,7 @@ import { CertificationModel, EducationModel } from '../../../models/education.mo
...
@@ -10,6 +10,7 @@ import { CertificationModel, EducationModel } from '../../../models/education.mo
import
{
environment
}
from
'../../../../../environments/environment'
;
import
{
environment
}
from
'../../../../../environments/environment'
;
import
{
Router
}
from
'@angular/router'
;
import
{
Router
}
from
'@angular/router'
;
import
{
HelperService
}
from
'../../../services/helper.service'
;
import
{
HelperService
}
from
'../../../services/helper.service'
;
import
{
CAREER_TABS
}
from
'../../../config/constants'
;
@
Component
({
@
Component
({
selector
:
'app-education'
,
selector
:
'app-education'
,
...
@@ -100,6 +101,7 @@ export class EducationComponent extends BaseComponent implements OnInit {
...
@@ -100,6 +101,7 @@ export class EducationComponent extends BaseComponent implements OnInit {
exp
.
WhenCompleted
=
UtilsService
.
convertDateToString
(
exp
.
WhenCompletedField
);
exp
.
WhenCompleted
=
UtilsService
.
convertDateToString
(
exp
.
WhenCompletedField
);
});
});
this
.
isSaving
=
true
;
this
.
isSaving
=
true
;
this
.
careerProfile
.
CurrentProfileBuilderTab
=
CAREER_TABS
.
SKILLS
;
this
.
personalDetailsService
.
saveProfile
(
this
.
createdObjs
,
this
.
updatedObjs
,
this
.
deletedObjs
)
this
.
personalDetailsService
.
saveProfile
(
this
.
createdObjs
,
this
.
updatedObjs
,
this
.
deletedObjs
)
.
pipe
(
takeUntil
(
this
.
componentInView
))
.
pipe
(
takeUntil
(
this
.
componentInView
))
.
subscribe
(
res
=>
{
.
subscribe
(
res
=>
{
...
...
frontend/angular/src/app/my-career-web/career-history/career-history/publish/publish.component.html
View file @
acfa0823
...
@@ -54,6 +54,6 @@
...
@@ -54,6 +54,6 @@
</div>
</div>
<div
class=
"d-flex justify-content-center mt-5"
>
<div
class=
"d-flex justify-content-center mt-5"
>
<button
class=
"mc-btn-primary"
pButton
label=
"Complete"
></button>
<button
class=
"mc-btn-primary"
pButton
label=
"Complete"
(
click
)="
completeProfile
()"
></button>
</div>
</div>
</div>
</div>
frontend/angular/src/app/my-career-web/career-history/career-history/publish/publish.component.ts
View file @
acfa0823
...
@@ -4,6 +4,8 @@ import { CareerProfileModel } from '../../../models/career-profile.model';
...
@@ -4,6 +4,8 @@ import { CareerProfileModel } from '../../../models/career-profile.model';
import
{
UtilsService
}
from
'../../../../oneit/services/utils.service'
;
import
{
UtilsService
}
from
'../../../../oneit/services/utils.service'
;
import
{
BaseComponent
}
from
'../../../base/base.component'
;
import
{
BaseComponent
}
from
'../../../base/base.component'
;
import
{
takeUntil
}
from
'rxjs/operators'
;
import
{
takeUntil
}
from
'rxjs/operators'
;
import
{
ToasterService
}
from
'../../../services/toaster.service'
;
import
{
Router
}
from
'@angular/router'
;
@
Component
({
@
Component
({
selector
:
'app-publish'
,
selector
:
'app-publish'
,
...
@@ -17,6 +19,8 @@ export class PublishComponent extends BaseComponent implements OnInit {
...
@@ -17,6 +19,8 @@ export class PublishComponent extends BaseComponent implements OnInit {
constructor
(
constructor
(
private
personalDetailsService
:
PersonalDetailsService
,
private
personalDetailsService
:
PersonalDetailsService
,
private
toasterService
:
ToasterService
,
private
router
:
Router
,
private
utilsService
:
UtilsService
private
utilsService
:
UtilsService
)
{
)
{
super
();
super
();
...
@@ -54,4 +58,9 @@ export class PublishComponent extends BaseComponent implements OnInit {
...
@@ -54,4 +58,9 @@ export class PublishComponent extends BaseComponent implements OnInit {
})
})
}
}
completeProfile
():
void
{
this
.
toasterService
.
success
(
'Profile updated.'
);
this
.
router
.
navigate
([
'/my-career-web/dashboard/home'
]);
}
}
}
frontend/angular/src/app/my-career-web/career-history/career-history/references/references.component.ts
View file @
acfa0823
...
@@ -11,6 +11,7 @@ import { environment } from '../../../../../environments/environment';
...
@@ -11,6 +11,7 @@ import { environment } from '../../../../../environments/environment';
import
{
Router
}
from
'@angular/router'
;
import
{
Router
}
from
'@angular/router'
;
import
{
HelperService
}
from
'../../../services/helper.service'
;
import
{
HelperService
}
from
'../../../services/helper.service'
;
import
{
ToasterService
}
from
'../../../services/toaster.service'
;
import
{
ToasterService
}
from
'../../../services/toaster.service'
;
import
{
CAREER_TABS
}
from
'../../../config/constants'
;
@
Component
({
@
Component
({
selector
:
'app-references'
,
selector
:
'app-references'
,
...
@@ -93,6 +94,7 @@ export class ReferencesComponent extends BaseComponent implements OnInit {
...
@@ -93,6 +94,7 @@ export class ReferencesComponent extends BaseComponent implements OnInit {
}
}
}
}
this
.
isSaving
=
true
;
this
.
isSaving
=
true
;
this
.
careerProfile
.
CurrentProfileBuilderTab
=
CAREER_TABS
.
PUBLISH
;
this
.
personalDetailsService
.
saveProfile
(
this
.
createdObjs
,
this
.
updatedObjs
,
this
.
deletedObjs
)
this
.
personalDetailsService
.
saveProfile
(
this
.
createdObjs
,
this
.
updatedObjs
,
this
.
deletedObjs
)
.
pipe
(
takeUntil
(
this
.
componentInView
))
.
pipe
(
takeUntil
(
this
.
componentInView
))
.
subscribe
(
res
=>
{
.
subscribe
(
res
=>
{
...
...
frontend/angular/src/app/my-career-web/career-history/career-history/skills/skills.component.ts
View file @
acfa0823
...
@@ -9,6 +9,7 @@ import { takeUntil } from 'rxjs/operators';
...
@@ -9,6 +9,7 @@ import { takeUntil } from 'rxjs/operators';
import
{
CareerSkillModel
,
SkillModel
}
from
'../../../models/career-skill.model'
;
import
{
CareerSkillModel
,
SkillModel
}
from
'../../../models/career-skill.model'
;
import
{
Router
}
from
'@angular/router'
;
import
{
Router
}
from
'@angular/router'
;
import
{
HelperService
}
from
'../../../services/helper.service'
;
import
{
HelperService
}
from
'../../../services/helper.service'
;
import
{
CAREER_TABS
}
from
'../../../config/constants'
;
@
Component
({
@
Component
({
selector
:
'app-skills'
,
selector
:
'app-skills'
,
...
@@ -101,6 +102,7 @@ export class SkillsComponent extends BaseComponent implements OnInit {
...
@@ -101,6 +102,7 @@ export class SkillsComponent extends BaseComponent implements OnInit {
return
this
.
helperService
.
validateAllFormFields
(
this
.
form
);
return
this
.
helperService
.
validateAllFormFields
(
this
.
form
);
}
}
this
.
isSaving
=
true
;
this
.
isSaving
=
true
;
this
.
careerProfile
.
CurrentProfileBuilderTab
=
CAREER_TABS
.
REFERENCES
;
console
.
log
(
this
.
createdObjs
,
this
.
updatedObjs
,
this
.
deletedObjs
);
console
.
log
(
this
.
createdObjs
,
this
.
updatedObjs
,
this
.
deletedObjs
);
this
.
personalDetailsService
.
saveProfile
(
this
.
createdObjs
,
this
.
updatedObjs
,
this
.
deletedObjs
)
this
.
personalDetailsService
.
saveProfile
(
this
.
createdObjs
,
this
.
updatedObjs
,
this
.
deletedObjs
)
.
pipe
(
takeUntil
(
this
.
componentInView
))
.
pipe
(
takeUntil
(
this
.
componentInView
))
...
...
frontend/angular/src/app/my-career-web/career-history/career-history/work-history/work-history.component.ts
View file @
acfa0823
...
@@ -10,6 +10,7 @@ import { ConfirmationService } from 'primeng/api';
...
@@ -10,6 +10,7 @@ import { ConfirmationService } from 'primeng/api';
import
{
Router
}
from
'@angular/router'
;
import
{
Router
}
from
'@angular/router'
;
import
{
HelperService
}
from
'../../../services/helper.service'
;
import
{
HelperService
}
from
'../../../services/helper.service'
;
import
{
ToasterService
}
from
'../../../services/toaster.service'
;
import
{
ToasterService
}
from
'../../../services/toaster.service'
;
import
{
CAREER_TABS
}
from
'../../../config/constants'
;
@
Component
({
@
Component
({
selector
:
'app-work-history'
,
selector
:
'app-work-history'
,
...
@@ -104,6 +105,7 @@ export class WorkHistoryComponent extends BaseComponent implements OnInit {
...
@@ -104,6 +105,7 @@ export class WorkHistoryComponent extends BaseComponent implements OnInit {
exp
.
EndMonth
=
UtilsService
.
convertDateToString
(
exp
.
EndMonthField
);
exp
.
EndMonth
=
UtilsService
.
convertDateToString
(
exp
.
EndMonthField
);
});
});
this
.
isSaving
=
true
;
this
.
isSaving
=
true
;
this
.
careerProfile
.
CurrentProfileBuilderTab
=
CAREER_TABS
.
EDUCATION
;
this
.
personalDetailsService
.
saveProfile
(
this
.
createdObjs
,
this
.
updatedObjs
,
this
.
deletedObjs
)
this
.
personalDetailsService
.
saveProfile
(
this
.
createdObjs
,
this
.
updatedObjs
,
this
.
deletedObjs
)
.
pipe
(
takeUntil
(
this
.
componentInView
))
.
pipe
(
takeUntil
(
this
.
componentInView
))
.
subscribe
(
res
=>
{
.
subscribe
(
res
=>
{
...
...
frontend/angular/src/app/my-career-web/config/constants.ts
View file @
acfa0823
...
@@ -130,3 +130,13 @@ export const PROFILE_TASKS = [
...
@@ -130,3 +130,13 @@ export const PROFILE_TASKS = [
started
:
false
started
:
false
}
}
];
];
export
const
CAREER_TABS
=
{
PERSONAL_DATA
:
'PERSONAL_DATA'
,
WORK_HISTORY
:
'WORK_HISTORY'
,
EDUCATION
:
'EDUCATION'
,
SKILLS
:
'SKILLS'
,
REFERENCES
:
'REFERENCES'
,
TEMPLATES
:
'TEMPLATES'
,
PUBLISH
:
'PUBLISH'
};
frontend/angular/src/app/my-career-web/mc-shared/personal-details/personal-details.component.ts
View file @
acfa0823
...
@@ -9,6 +9,7 @@ import { ToasterService } from '../../services/toaster.service';
...
@@ -9,6 +9,7 @@ import { ToasterService } from '../../services/toaster.service';
import
{
Router
}
from
'@angular/router'
;
import
{
Router
}
from
'@angular/router'
;
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
{
CAREER_TABS
}
from
'../../config/constants'
;
@
Component
({
@
Component
({
selector
:
'app-personal-details'
,
selector
:
'app-personal-details'
,
...
@@ -109,6 +110,9 @@ export class PersonalDetailsComponent extends BaseComponent implements OnInit {
...
@@ -109,6 +110,9 @@ export class PersonalDetailsComponent extends BaseComponent implements OnInit {
}
}
this
.
careerProfile
.
Candidate
.
User
.
UserName
=
this
.
careerProfile
.
Candidate
.
User
.
Email
;
this
.
careerProfile
.
Candidate
.
User
.
UserName
=
this
.
careerProfile
.
Candidate
.
User
.
Email
;
this
.
isSaving
=
true
;
this
.
isSaving
=
true
;
if
(
this
.
asChildComponent
&&
customRoute
)
{
this
.
careerProfile
.
CurrentProfileBuilderTab
=
CAREER_TABS
.
WORK_HISTORY
;
}
this
.
personalDetailsService
.
saveProfile
(
this
.
createdObjs
,
this
.
updatedObjs
,
this
.
deletedObjs
)
this
.
personalDetailsService
.
saveProfile
(
this
.
createdObjs
,
this
.
updatedObjs
,
this
.
deletedObjs
)
.
pipe
(
takeUntil
(
this
.
componentInView
))
.
pipe
(
takeUntil
(
this
.
componentInView
))
.
subscribe
(
res
=>
{
.
subscribe
(
res
=>
{
...
...
frontend/angular/src/app/my-career-web/models/career-profile.model.ts
View file @
acfa0823
...
@@ -23,6 +23,7 @@ export class CareerProfileModel extends BaseModel {
...
@@ -23,6 +23,7 @@ export class CareerProfileModel extends BaseModel {
Referees
:
RefereeModel
[]
=
[];
Referees
:
RefereeModel
[]
=
[];
NoWorkExperience
:
boolean
;
NoWorkExperience
:
boolean
;
NoEducationQualification
:
boolean
;
NoEducationQualification
:
boolean
;
CurrentProfileBuilderTab
:
string
;
NoReference
:
boolean
;
NoReference
:
boolean
;
PublishProfile
:
boolean
;
PublishProfile
:
boolean
;
AssumedUser
:
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