Skip to content

Commit

Permalink
fix pr issue
Browse files Browse the repository at this point in the history
  • Loading branch information
bergomi02 committed Jun 17, 2024
1 parent 831704d commit 97e4aff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
<td mat-cell
*matCellDef="let row;">
<mat-slide-toggle color="primary"
(change)="ToggoleStatus(row.id, $event)"
(change)="toggoleStatus(row.id, $event)"
[checked]="row.status === 1">
{{ row.status === 1 ? 'Enabled' : 'Disabled' }}
</mat-slide-toggle>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export class AdminUsersTableComponent implements OnInit {
) {
}

public ToggoleStatus(adminId: number, change: MatSlideToggleChange) {
public toggoleStatus(adminId: number, change: MatSlideToggleChange) {
if (change.checked) {
this.adjudicationResource.enableAdmin(adminId).subscribe((admin: Admin) => {
this.dataSource.find(admin => admin.id === adminId).status = admin.status;
Expand Down

0 comments on commit 97e4aff

Please sign in to comment.