Skip to content

Commit 90fd4f4

Browse files
committed
fix: #569 remove column switch to admin
1 parent c97a58a commit 90fd4f4

File tree

2 files changed

+4
-19
lines changed

2 files changed

+4
-19
lines changed
Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,15 @@
11
<table *ngIf="users" class="table table-sm table-bordered table-striped mb-0" datatable [dtTrigger]="dtTrigger">
22
<thead class="thead-blue">
33
<tr class="d-flex">
4-
<th class="col-4">User Email</th>
5-
<th class="col-4">Names</th>
6-
<th class="col-4 text-center">Admin Role</th>
4+
<th class="col-6">User Email</th>
5+
<th class="col-6">Names</th>
76
</tr>
87
</thead>
98
<app-loading-bar *ngIf="isLoading$ | async"></app-loading-bar>
109
<tbody *ngIf="(isLoading$ | async) === false">
1110
<tr class="d-flex" *ngFor="let user of users">
12-
<td class="col-sm-4">{{ user.email }}</td>
13-
<td class="col-sm-4">{{ user.name }}</td>
14-
<td class="col-sm-4 text-center custom-control custom-switch">
15-
<input
16-
type="checkbox"
17-
class="custom-control-input"
18-
id="{{ user.id }}"
19-
[(ngModel)]="user.role"
20-
(change)="switchToAdmin(user.id)"
21-
/>
22-
<label class="custom-control-label" for="{{ user.id }}"></label>
23-
</td>
11+
<td class="col-sm-6">{{ user.email }}</td>
12+
<td class="col-sm-6">{{ user.name }}</td>
2413
</tr>
2514
</tbody>
2615
</table>

src/app/modules/users/components/users-list/users-list.component.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,4 @@ export class UsersListComponent implements OnInit, OnDestroy, AfterViewInit {
5252
this.dtTrigger.next();
5353
}
5454
}
55-
56-
switchToAdmin(userId: string) {
57-
console.log('Upcoming change to' + userId);
58-
}
5955
}

0 commit comments

Comments
 (0)