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:
@@ -79,7 +79,8 @@ export class EmployeeFunctionsComponent implements OnInit {
|
||||
this.toaster.show('Success', 'Salaries Credited');
|
||||
},
|
||||
(error) => {
|
||||
this.toaster.show('Danger', error.error);
|
||||
console.log('Error:', error);
|
||||
this.toaster.show('Danger', error);
|
||||
}
|
||||
);
|
||||
}
|
||||
@@ -109,7 +110,7 @@ export class EmployeeFunctionsComponent implements OnInit {
|
||||
this.toaster.show('Success', 'Fingerprints uploaded');
|
||||
},
|
||||
(error) => {
|
||||
this.toaster.show('Danger', error.error);
|
||||
this.toaster.show('Danger', error);
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user