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
f560cd50
Commit
f560cd50
authored
Jul 22, 2020
by
Muhammad Usman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
diversity profile updates fixes
parent
05151971
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
81 additions
and
6 deletions
+81
-6
diversity-profile.component.html
...ssment/diversity-profile/diversity-profile.component.html
+1
-1
diversity-profile.component.ts
...sessment/diversity-profile/diversity-profile.component.ts
+6
-0
intro-letter.component.html
...eb/intro-letters/intro-letter/intro-letter.component.html
+1
-1
intro-letter.component.ts
...-web/intro-letters/intro-letter/intro-letter.component.ts
+7
-4
job.component.css
.../angular/src/app/my-career-web/jobs/job/job.component.css
+0
-0
job.component.html
...angular/src/app/my-career-web/jobs/job/job.component.html
+3
-0
job.component.ts
...d/angular/src/app/my-career-web/jobs/job/job.component.ts
+15
-0
jobs.module.ts
frontend/angular/src/app/my-career-web/jobs/jobs.module.ts
+15
-0
jobs.routing.ts
frontend/angular/src/app/my-career-web/jobs/jobs.routing.ts
+10
-0
jobs.component.css
...ngular/src/app/my-career-web/jobs/jobs/jobs.component.css
+0
-0
jobs.component.html
...gular/src/app/my-career-web/jobs/jobs/jobs.component.html
+3
-0
jobs.component.ts
...angular/src/app/my-career-web/jobs/jobs/jobs.component.ts
+15
-0
my-career-web.routing.ts
...nd/angular/src/app/my-career-web/my-career-web.routing.ts
+5
-0
No files found.
frontend/angular/src/app/my-career-web/assessment/diversity-profile/diversity-profile.component.html
View file @
f560cd50
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
<div
class=
"header-actions"
>
<div
class=
"header-actions"
>
<span
class=
"auto-saved"
*
ngIf=
"autoSaveLabel"
>
Auto saved {{autoSaveLabel}}
</span>
<span
class=
"auto-saved"
*
ngIf=
"autoSaveLabel"
>
Auto saved {{autoSaveLabel}}
</span>
<button
pButton
label=
"Save & exit
"
[
disabled
]="
isSaving
"
(
click
)="
exit
()"
class=
"ui-button-info"
></button>
<button
pButton
[
label
]="
isComplete
?
'
Complete
'
:
'
Save
&
exit
'
"
[
disabled
]="
isSaving
"
(
click
)="
exit
()"
class=
"ui-button-info"
></button>
</div>
</div>
</div>
</div>
...
...
frontend/angular/src/app/my-career-web/assessment/diversity-profile/diversity-profile.component.ts
View file @
f560cd50
...
@@ -61,6 +61,12 @@ export class DiversityProfileComponent extends BaseComponent implements OnInit {
...
@@ -61,6 +61,12 @@ export class DiversityProfileComponent extends BaseComponent implements OnInit {
});
});
}
}
get
isComplete
():
boolean
{
return
this
.
diversityProfiles
.
every
(
div
=>
{
return
div
.
MultipleAnswers
?
this
.
selectedAnswers
[
div
.
ObjectID
].
length
>
0
:
!!
this
.
selectedAnswers
[
div
.
ObjectID
];
});
}
exit
():
void
{
exit
():
void
{
this
.
isSaving
=
true
;
this
.
isSaving
=
true
;
const
answers
=
[];
const
answers
=
[];
...
...
frontend/angular/src/app/my-career-web/intro-letters/intro-letter/intro-letter.component.html
View file @
f560cd50
...
@@ -81,7 +81,7 @@
...
@@ -81,7 +81,7 @@
<button
pButton
style=
"min-width: 180px;"
label=
"Download"
class=
"mc-btn-secondary"
(
click
)="
getIntroLetter
(
true
)"
*
ngIf=
"isEditMode"
></button>
<button
pButton
style=
"min-width: 180px;"
label=
"Download"
class=
"mc-btn-secondary"
(
click
)="
getIntroLetter
(
true
)"
*
ngIf=
"isEditMode"
></button>
</div>
</div>
<div
class=
"col-md-6 d-flex justify-content-end"
>
<div
class=
"col-md-6 d-flex justify-content-end"
>
<button
(
click
)="
saveIntroLetter
()"
pButton
label=
"Update"
class=
"mc-btn-primary"
></button>
<button
(
click
)="
saveIntroLetter
()"
pButton
label=
"Update"
class=
"mc-btn-primary"
[
disabled
]="
isLoading
"
></button>
</div>
</div>
</div>
</div>
...
...
frontend/angular/src/app/my-career-web/intro-letters/intro-letter/intro-letter.component.ts
View file @
f560cd50
...
@@ -13,6 +13,7 @@ import { ILWorkExperienceModel } from '../../models/il-work-experience.model';
...
@@ -13,6 +13,7 @@ import { ILWorkExperienceModel } from '../../models/il-work-experience.model';
import
{
ILSkillModel
}
from
'../../models/il-skill.model'
;
import
{
ILSkillModel
}
from
'../../models/il-skill.model'
;
import
*
as
FileSaver
from
'file-saver'
;
import
*
as
FileSaver
from
'file-saver'
;
import
{
ToasterService
}
from
'../../services/toaster.service'
;
@
Component
({
@
Component
({
selector
:
'app-intro-letter'
,
selector
:
'app-intro-letter'
,
...
@@ -34,6 +35,7 @@ export class IntroLetterComponent extends BaseComponent implements OnInit {
...
@@ -34,6 +35,7 @@ export class IntroLetterComponent extends BaseComponent implements OnInit {
private
introLetterService
:
IntroLetterService
,
private
introLetterService
:
IntroLetterService
,
private
utilsService
:
UtilsService
,
private
utilsService
:
UtilsService
,
private
helperService
:
HelperService
,
private
helperService
:
HelperService
,
private
toastService
:
ToasterService
,
private
router
:
Router
private
router
:
Router
)
{
)
{
super
();
super
();
...
@@ -97,6 +99,7 @@ export class IntroLetterComponent extends BaseComponent implements OnInit {
...
@@ -97,6 +99,7 @@ export class IntroLetterComponent extends BaseComponent implements OnInit {
ilWorkExperience
.
IntroductionLetter
=
this
.
introductionLetter
.
ObjectID
;
ilWorkExperience
.
IntroductionLetter
=
this
.
introductionLetter
.
ObjectID
;
ilWorkExperience
.
WorkExperience
=
w
;
ilWorkExperience
.
WorkExperience
=
w
;
ilWorkExperience
.
SortOrder
=
i
;
ilWorkExperience
.
SortOrder
=
i
;
ilWorkExperience
.
IsSelected
=
true
;
this
.
utilsService
.
addMultiRefObject
(
ilWorkExperience
,
this
.
introductionLetter
,
'WorkExperiences'
,
this
.
createdObjs
);
this
.
utilsService
.
addMultiRefObject
(
ilWorkExperience
,
this
.
introductionLetter
,
'WorkExperiences'
,
this
.
createdObjs
);
});
});
this
.
careerProfile
.
Skills
.
forEach
((
s
,
i
)
=>
{
this
.
careerProfile
.
Skills
.
forEach
((
s
,
i
)
=>
{
...
@@ -104,6 +107,7 @@ export class IntroLetterComponent extends BaseComponent implements OnInit {
...
@@ -104,6 +107,7 @@ export class IntroLetterComponent extends BaseComponent implements OnInit {
ilSkillModel
.
IntroductionLetter
=
this
.
introductionLetter
.
ObjectID
;
ilSkillModel
.
IntroductionLetter
=
this
.
introductionLetter
.
ObjectID
;
ilSkillModel
.
Skill
=
s
.
Skill
;
ilSkillModel
.
Skill
=
s
.
Skill
;
ilSkillModel
.
SortOrder
=
i
;
ilSkillModel
.
SortOrder
=
i
;
ilSkillModel
.
IsSelected
=
false
;
this
.
utilsService
.
addMultiRefObject
(
ilSkillModel
,
this
.
introductionLetter
,
'Skills'
,
this
.
createdObjs
);
this
.
utilsService
.
addMultiRefObject
(
ilSkillModel
,
this
.
introductionLetter
,
'Skills'
,
this
.
createdObjs
);
});
});
}
}
...
@@ -125,11 +129,10 @@ export class IntroLetterComponent extends BaseComponent implements OnInit {
...
@@ -125,11 +129,10 @@ export class IntroLetterComponent extends BaseComponent implements OnInit {
this
.
isLoading
=
true
;
this
.
isLoading
=
true
;
this
.
introLetterService
.
saveIntroLetters
(
this
.
createdObjs
,
this
.
updatedObjs
,
this
.
deletedObjs
)
this
.
introLetterService
.
saveIntroLetters
(
this
.
createdObjs
,
this
.
updatedObjs
,
this
.
deletedObjs
)
.
pipe
(
takeUntil
(
this
.
componentInView
))
.
pipe
(
takeUntil
(
this
.
componentInView
))
.
subscribe
(
response
=>
{
.
subscribe
(
()
=>
{
this
.
isLoading
=
false
;
this
.
isLoading
=
false
;
if
(
response
.
created
&&
response
.
created
[
this
.
introductionLetter
.
ObjectID
])
{
this
.
toastService
.
success
(
'Intro letter saved'
);
this
.
router
.
navigate
([
`my-career-web/intro-letters/
${
response
.
created
[
this
.
introductionLetter
.
ObjectID
]}
`
])
this
.
router
.
navigate
([
`my-career-web/intro-letters`
])
}
},
err
=>
{
},
err
=>
{
this
.
utilsService
.
handleError
(
err
);
this
.
utilsService
.
handleError
(
err
);
this
.
isLoading
=
false
;
this
.
isLoading
=
false
;
...
...
frontend/angular/src/app/my-career-web/jobs/job/job.component.css
0 → 100644
View file @
f560cd50
frontend/angular/src/app/my-career-web/jobs/job/job.component.html
0 → 100644
View file @
f560cd50
<p>
job works!
</p>
frontend/angular/src/app/my-career-web/jobs/job/job.component.ts
0 → 100644
View file @
f560cd50
import
{
Component
,
OnInit
}
from
'@angular/core'
;
@
Component
({
selector
:
'app-job'
,
templateUrl
:
'./job.component.html'
,
styleUrls
:
[
'./job.component.css'
]
})
export
class
JobComponent
implements
OnInit
{
constructor
()
{
}
ngOnInit
()
{
}
}
frontend/angular/src/app/my-career-web/jobs/jobs.module.ts
0 → 100644
View file @
f560cd50
import
{
NgModule
}
from
'@angular/core'
;
import
{
CommonModule
}
from
'@angular/common'
;
import
{
JobsRouting
}
from
'./jobs.routing'
;
import
{
JobsComponent
}
from
'./jobs/jobs.component'
;
import
{
JobComponent
}
from
'./job/job.component'
;
@
NgModule
({
imports
:
[
CommonModule
,
JobsRouting
],
declarations
:
[
JobsComponent
,
JobComponent
]
})
export
class
JobsModule
{
}
frontend/angular/src/app/my-career-web/jobs/jobs.routing.ts
0 → 100644
View file @
f560cd50
import
{
NgModule
}
from
'@angular/core'
;
import
{
Routes
,
RouterModule
}
from
'@angular/router'
;
const
routes
:
Routes
=
[];
@
NgModule
({
imports
:
[
RouterModule
.
forChild
(
routes
)],
exports
:
[
RouterModule
]
})
export
class
JobsRouting
{
}
frontend/angular/src/app/my-career-web/jobs/jobs/jobs.component.css
0 → 100644
View file @
f560cd50
frontend/angular/src/app/my-career-web/jobs/jobs/jobs.component.html
0 → 100644
View file @
f560cd50
<p>
jobs works!
</p>
frontend/angular/src/app/my-career-web/jobs/jobs/jobs.component.ts
0 → 100644
View file @
f560cd50
import
{
Component
,
OnInit
}
from
'@angular/core'
;
@
Component
({
selector
:
'app-jobs'
,
templateUrl
:
'./jobs.component.html'
,
styleUrls
:
[
'./jobs.component.css'
]
})
export
class
JobsComponent
implements
OnInit
{
constructor
()
{
}
ngOnInit
()
{
}
}
frontend/angular/src/app/my-career-web/my-career-web.routing.ts
View file @
f560cd50
...
@@ -35,6 +35,11 @@ const routes: Routes = [
...
@@ -35,6 +35,11 @@ const routes: Routes = [
loadChildren
:
'./intro-letters/intro-letters.module#IntroLettersModule'
,
loadChildren
:
'./intro-letters/intro-letters.module#IntroLettersModule'
,
canActivate
:
[
HomeGuard
]
canActivate
:
[
HomeGuard
]
},
},
{
path
:
'jobs'
,
loadChildren
:
'./jobs/jobs.module#JobsModule'
,
canActivate
:
[
HomeGuard
]
},
{
path
:
''
,
component
:
WelcomeComponent
,
canActivate
:
[
PublicGuard
]}
{
path
:
''
,
component
:
WelcomeComponent
,
canActivate
:
[
PublicGuard
]}
]
]
}
}
...
...
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