Commit 3f55c5f1 by Muhammad Usman

profile tasks issue, toaster on moible fixed

parent 454d532f
...@@ -73,6 +73,8 @@ export class WorkStyleComponent extends BaseComponent implements OnInit, OnDestr ...@@ -73,6 +73,8 @@ export class WorkStyleComponent extends BaseComponent implements OnInit, OnDestr
if (response.NextQuestion) { if (response.NextQuestion) {
this.workStyleQuestion = response.NextQuestion; this.workStyleQuestion = response.NextQuestion;
this.setAnswerScales(); this.setAnswerScales();
} else {
this.exit();
} }
}, err => { }, err => {
this.isLoading = false; this.isLoading = false;
......
...@@ -58,6 +58,7 @@ export class ProfileTasksComponent extends BaseComponent { ...@@ -58,6 +58,7 @@ export class ProfileTasksComponent extends BaseComponent {
} }
setProfileCompletion(): void { setProfileCompletion(): void {
this.profileTasks.forEach(t => t.active = false);
const currentTask = this.profileTasks.find(t => this.careerProfile[t.key] !== 100); const currentTask = this.profileTasks.find(t => this.careerProfile[t.key] !== 100);
currentTask.active = true; currentTask.active = true;
// const percentage = (this.careerProfile.CompletedPercentage || 0) * 3.6; // const percentage = (this.careerProfile.CompletedPercentage || 0) * 3.6;
......
...@@ -99,7 +99,7 @@ ...@@ -99,7 +99,7 @@
&-message { &-message {
width: 100%; width: 100%;
padding: 10px 8px !important; padding: 10px 14px 10px 8px !important;
} }
&-close-icon { &-close-icon {
......
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