Commit 539eac42 by Muhammad Usman

career history 99% logic implemented

parent 96b96838
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<h4 class="tab-heading" *ngIf="!careerProfile?.Template">Select the design template for your Career Profile</h4> <h4 class="tab-heading" *ngIf="!careerProfile?.Template">Select the design template for your Career Profile</h4>
<div class="selected-template" *ngIf="careerProfile?.Template"> <div class="selected-template" *ngIf="careerProfile?.Template">
<img [src]="apiBase + careerProfile.Template.FullImageURI" alt=""> <img [src]="apiBase + careerProfile.Template.ThumbnailImageURI" alt="">
</div> </div>
......
...@@ -78,6 +78,11 @@ ...@@ -78,6 +78,11 @@
} }
} }
.selected-template {
max-width: 80%;
margin: 0 auto;
}
@media screen and (max-width: 1024px) { @media screen and (max-width: 1024px) {
.close-templates { .close-templates {
color: #fff !important; color: #fff !important;
......
...@@ -38,8 +38,6 @@ export class HomeComponent extends BaseComponent implements OnInit { ...@@ -38,8 +38,6 @@ export class HomeComponent extends BaseComponent implements OnInit {
.pipe(takeUntil(this.componentInView)) .pipe(takeUntil(this.componentInView))
.subscribe(profile => { .subscribe(profile => {
this.careerProfile = this.utilsService.cloneObject(profile); this.careerProfile = this.utilsService.cloneObject(profile);
console.log(this.careerProfile);
}); });
this.personalDetailsService.currentTab$ this.personalDetailsService.currentTab$
.pipe(takeUntil(this.componentInView)) .pipe(takeUntil(this.componentInView))
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
</span> </span>
</div> </div>
<div class="sidebar-navigation-item" routerLink="/my-career-web/career-history/update" [ngClass]="{disabled: careerProfile.CompletedPercentageCH !== 100}"> <div class="sidebar-navigation-item" routerLink="/my-career-web/career-history/update" [ngClass]="careerProfile?.CompletedPercentageCH <= 100 ? 'disabled' : ''">
<span class="sidebar-navigation-item-icon"> <span class="sidebar-navigation-item-icon">
<i class="fa fa-lock"></i> <i class="fa fa-lock"></i>
</span> </span>
......
...@@ -55,7 +55,10 @@ export class ProfileTasksComponent extends BaseComponent { ...@@ -55,7 +55,10 @@ export class ProfileTasksComponent extends BaseComponent {
t.completed = false; t.completed = false;
t.inProgress = false; t.inProgress = false;
t.started = false; t.started = false;
if (this.careerProfile[t.key] === 100) { if (t.key === 'CompletedPercentageCH' && this.careerProfile[t.key] >= 100 && !this.careerProfile.PublishProfile) {
this.careerProfile[t.key] = 99;
}
if (this.careerProfile[t.key] >= 100) {
t.completed = true; t.completed = true;
} else if (this.careerProfile[t.key] > 0 && this.careerProfile[t.key] <= 100) { } else if (this.careerProfile[t.key] > 0 && this.careerProfile[t.key] <= 100) {
t.inProgress = true; t.inProgress = true;
......
...@@ -37,6 +37,7 @@ export class CandidateModel extends BaseModel { ...@@ -37,6 +37,7 @@ export class CandidateModel extends BaseModel {
Description: string; Description: string;
Disabled: boolean; Disabled: boolean;
FullImageURI: string; FullImageURI: string;
ThumbnailImageURI: string;
Name: string; Name: string;
SortOrder: number; SortOrder: number;
Value: string; Value: string;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment