Commit 082c79a7 authored by Almouhannad's avatar Almouhannad

(F) Edit toastrs

parent 674add08
...@@ -41,7 +41,7 @@ export class UpdateDoctorPersonalDataFormComponent { ...@@ -41,7 +41,7 @@ export class UpdateDoctorPersonalDataFormComponent {
result => { result => {
if (result.status === true) if (result.status === true)
{ {
this.toastrService.success('تم تعديل البيانات بنجاح'); this.toastrService.success('تم تعديل البيانات بنجاح');
this.router.navigateByUrl('admin/doctors'); this.router.navigateByUrl('admin/doctors');
} }
else { else {
......
...@@ -35,7 +35,7 @@ export class UpdateDoctorUserDataFormComponent { ...@@ -35,7 +35,7 @@ export class UpdateDoctorUserDataFormComponent {
.subscribe( .subscribe(
result => { result => {
if (result.status === true) { if (result.status === true) {
this.toastrService.success('تم تحديث البيانات بنجاح'); this.toastrService.success('تم تحديث البيانات بنجاح');
this.router.navigateByUrl('admin/doctors'); this.router.navigateByUrl('admin/doctors');
} }
else { else {
......
...@@ -45,7 +45,7 @@ export class CreateEmployeeFormComponent { ...@@ -45,7 +45,7 @@ export class CreateEmployeeFormComponent {
this.employeesDataService.create(this.formModel) this.employeesDataService.create(this.formModel)
.subscribe(result => { .subscribe(result => {
if (result.status === true) { if (result.status === true) {
this.toastrService.success('تم إضافة الموظف بنجاح'); this.toastrService.success('تم إضافة الموظف بنجاح');
this.router.navigateByUrl(`receptionist/employees/${result.id!}`); this.router.navigateByUrl(`receptionist/employees/${result.id!}`);
} }
else { else {
......
...@@ -35,7 +35,7 @@ export class CreateWitingListItemForEmployeeComponent { ...@@ -35,7 +35,7 @@ export class CreateWitingListItemForEmployeeComponent {
this.waitingListService.createBySerialNumber(this.formModel.serialNumber) this.waitingListService.createBySerialNumber(this.formModel.serialNumber)
.subscribe((result => { .subscribe((result => {
if (result.status === true) { if (result.status === true) {
this.toastrService.success('تمت الإضافة بنجاح'); this.toastrService.success('تمت الإضافة بنجاح');
this.router.navigateByUrl('receptionist/waitinglist'); this.router.navigateByUrl('receptionist/waitinglist');
} }
else { else {
......
...@@ -40,7 +40,7 @@ export class WaitingListItemComponent { ...@@ -40,7 +40,7 @@ export class WaitingListItemComponent {
this.waitingListService.delete(this.model.id) this.waitingListService.delete(this.model.id)
.subscribe(result => { .subscribe(result => {
if (result.status === true) { if (result.status === true) {
this.toastrService.success('تم الحذف بنجاح'); this.toastrService.success('تم الحذف بنجاح');
this.deleted.emit(); this.deleted.emit();
} }
else { else {
......
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