Commit 47f4f00e by Muhammad Usman

work prefences, work history bug fixes

parent 9125f7f1
...@@ -75,7 +75,7 @@ export class DiversityProfileComponent extends BaseComponent implements OnInit { ...@@ -75,7 +75,7 @@ export class DiversityProfileComponent extends BaseComponent implements OnInit {
.pipe(takeUntil(this.componentInView)) .pipe(takeUntil(this.componentInView))
.subscribe(() => { .subscribe(() => {
this.isSaving = false; this.isSaving = false;
this.toasterService.success('Preferences updated!'); this.toasterService.success('Diversity profile updated!');
this.router.navigate(['/my-career-web/dashboard/home']); this.router.navigate(['/my-career-web/dashboard/home']);
}, err => { }, err => {
this.isSaving = false; this.isSaving = false;
......
...@@ -9,6 +9,7 @@ import { NgForm } from '@angular/forms'; ...@@ -9,6 +9,7 @@ import { NgForm } from '@angular/forms';
import { ConfirmationService } from 'primeng/api'; 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';
@Component({ @Component({
selector: 'app-work-history', selector: 'app-work-history',
...@@ -29,6 +30,7 @@ export class WorkHistoryComponent extends BaseComponent implements OnInit { ...@@ -29,6 +30,7 @@ export class WorkHistoryComponent extends BaseComponent implements OnInit {
private confirmationService: ConfirmationService, private confirmationService: ConfirmationService,
private utilsService: UtilsService, private utilsService: UtilsService,
private helperService: HelperService, private helperService: HelperService,
private toastService: ToasterService,
private router: Router private router: Router
) { ) {
super(); super();
...@@ -102,6 +104,7 @@ export class WorkHistoryComponent extends BaseComponent implements OnInit { ...@@ -102,6 +104,7 @@ export class WorkHistoryComponent extends BaseComponent implements OnInit {
.subscribe(res => { .subscribe(res => {
this.isSaving = false; this.isSaving = false;
if (customRoute) { if (customRoute) {
this.toastService.success('Work history updated');
this.router.navigate([customRoute]) this.router.navigate([customRoute])
} else { } else {
this.workSaved.emit(); this.workSaved.emit();
......
...@@ -139,7 +139,7 @@ ...@@ -139,7 +139,7 @@
<div class="feature-action">Get this feature</div> <div class="feature-action">Get this feature</div>
</div> </div>
<div class="feature"> <div class="feature">
<div class="feature-heading">Development Reports</div> <div class="feature-heading" style="white-space: nowrap;">Development Reports</div>
<div class="feature-content">Information about feature that gives user context as to why to upgrade.</div> <div class="feature-content">Information about feature that gives user context as to why to upgrade.</div>
<div class="feature-action">Get this feature</div> <div class="feature-action">Get this feature</div>
</div> </div>
......
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