Skip to content

Commit

Permalink
issue #fix search popover and edit sessin in manage session page
Browse files Browse the repository at this point in the history
  • Loading branch information
GSuma21 committed Jan 22, 2024
1 parent 50209a6 commit 669755b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,10 @@ export class ManageSessionComponent implements OnInit {
case 'mentor_name':
this.router.navigate([CommonRoutes.MENTOR_DETAILS, this.receivedEventData.element.mentor_id]);
break;
case 'edit':

case 'delete':
case "EDIT":
this.router.navigate([`${CommonRoutes.ADMIN}/${CommonRoutes.MANAGERS_SESSION}`], { queryParams: { id: this.receivedEventData.element.id }});
break;
case 'DELETE':

default:
this.router.navigate([CommonRoutes.SESSIONS_DETAILS, this.receivedEventData.element.id]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
<ion-grid>
<ion-row class="d-flex flex-justify-center">
<div *ngFor="let buttonName of element[column.name]">
<ion-button [class]="buttonName.cssColor" (click)="onCellClick(buttonName,column,element)">
<ion-button [class]="buttonName.cssColor" (click)="onCellClick(buttonName.name,column,element)">
{{ buttonName.name | translate }}
</ion-button>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export class SearchPopoverComponent implements OnInit {
}

onCLickEvent(data: any) {
switch(data.action.name){
switch(data.action){
case 'add':
if(!this.control.meta .multiSelect){
this.popoverController.dismiss([data.element], this.control)
Expand All @@ -131,6 +131,6 @@ export class SearchPopoverComponent implements OnInit {
async onPaginatorChange(data:any) {
this.page = data.page;
this.limit = data.pageSize
await this.list()
this.tableData = await this.list()
}
}

0 comments on commit 669755b

Please sign in to comment.