DbImage works!!
Credit Salary works!! Refresh router created, now need to use it in angular Errors should now show up in the frontend.
This commit is contained in:
@@ -185,7 +185,7 @@ export class EmployeeBenefitsComponent implements OnInit, AfterViewInit {
|
||||
this.toaster.show('Success', 'Voucher Posted');
|
||||
},
|
||||
(error) => {
|
||||
this.toaster.show('Danger', error.error);
|
||||
this.toaster.show('Danger', error);
|
||||
}
|
||||
);
|
||||
}
|
||||
@@ -198,7 +198,7 @@ export class EmployeeBenefitsComponent implements OnInit, AfterViewInit {
|
||||
this.router.navigate(['/employee-benefits', result.id]);
|
||||
},
|
||||
(error) => {
|
||||
this.toaster.show('Danger', error.error);
|
||||
this.toaster.show('Danger', error);
|
||||
}
|
||||
);
|
||||
}
|
||||
@@ -217,7 +217,7 @@ export class EmployeeBenefitsComponent implements OnInit, AfterViewInit {
|
||||
this.router.navigate(['/employee-benefits'], {replaceUrl: true});
|
||||
},
|
||||
(error) => {
|
||||
this.toaster.show('Danger', error.error);
|
||||
this.toaster.show('Danger', error);
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user