From 0ac8ad4caf3735555726132f94118545f5f6731d Mon Sep 17 00:00:00 2001 From: Karyamsetty Helen Grace Date: Fri, 16 May 2025 15:10:03 +0530 Subject: [PATCH 1/2] fix(bug): regression testing changes --- Common-UI | 2 +- .../swymed-user-mapping.component.ts | 21 ++++++++++++------- 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/Common-UI b/Common-UI index 881c2339..6412a482 160000 --- a/Common-UI +++ b/Common-UI @@ -1 +1 @@ -Subproject commit 881c2339634ed4a292d271d52c4365af496405fd +Subproject commit 6412a482513a89ab2793422fb1cbbbe95d330324 diff --git a/src/app/app-provider-admin/provider-admin/configurations/swymed-user-mapping/swymed-user-mapping.component.ts b/src/app/app-provider-admin/provider-admin/configurations/swymed-user-mapping/swymed-user-mapping.component.ts index 472a8149..57890110 100644 --- a/src/app/app-provider-admin/provider-admin/configurations/swymed-user-mapping/swymed-user-mapping.component.ts +++ b/src/app/app-provider-admin/provider-admin/configurations/swymed-user-mapping/swymed-user-mapping.component.ts @@ -348,6 +348,7 @@ export class SwymedUserMappingComponent implements OnInit { } else { this.status = 'Activate'; } + const modifiedBy: any = this.sessionstorage.getItem('uname'); this.dialogService .confirm('Confirm', 'Are you sure you want to ' + this.status + '?') .subscribe( @@ -357,16 +358,20 @@ export class SwymedUserMappingComponent implements OnInit { .mappingActivationDeactivation( item.userVideoConsultationMapID, flag, - item.modifiedBy, + modifiedBy, ) .subscribe( - (res) => { - console.log('Activation or deactivation response', res); - this.dialogService.alert( - this.status + 'd successfully', - 'success', - ); - this.getAllSwymedUserDetails(); + (res: any) => { + if (res && res.statusCode === 200) { + console.log('Activation or deactivation response', res); + this.dialogService.alert( + this.status + 'd successfully', + 'success', + ); + this.getAllSwymedUserDetails(); + } else { + this.dialogService.alert(res.errorMessage, 'error'); + } }, (err) => { if (err._body !== undefined) { From cbd9a056fd69fa7c87bffe2971d71c8d96ade905 Mon Sep 17 00:00:00 2001 From: Karyamsetty Helen Grace Date: Fri, 13 Jun 2025 21:48:53 +0530 Subject: [PATCH 2/2] fix: removing extra reset --- .../service-point-master/service-point.component.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/app-provider-admin/provider-admin/activities/service-point-master/service-point.component.html b/src/app/app-provider-admin/provider-admin/activities/service-point-master/service-point.component.html index 44450d7d..e8591812 100644 --- a/src/app/app-provider-admin/provider-admin/activities/service-point-master/service-point.component.html +++ b/src/app/app-provider-admin/provider-admin/activities/service-point-master/service-point.component.html @@ -525,7 +525,7 @@

Create Service Point

[disabled]="!(servicePointList.data.length > 0)" color="accent" class="pull-right m-b-10 mat_green" - (click)="storeServicePoints(); servicePointForm1.reset()" + (click)="storeServicePoints()" > Save