|
5 | 5 | <th class="col-4 text-center">Activity ID</th> |
6 | 6 | <th class="col-4 text-center">Activity</th> |
7 | 7 | <th class="col-2 text-center">Options</th> |
8 | | - <th class="col-2 text-center">Status</th> |
| 8 | + <th class="col-2 text-center">Visibility</th> |
9 | 9 | </tr> |
10 | 10 | </thead> |
11 | | - <app-loading-bar *ngIf="(isLoading$ | async)"></app-loading-bar> |
| 11 | + <app-loading-bar *ngIf="isLoading$ | async"></app-loading-bar> |
12 | 12 | <tbody *ngIf="(isLoading$ | async) === false"> |
13 | 13 | <tr class="d-flex" *ngFor="let activity of activities"> |
14 | 14 | <td class="col-4 text-break">{{ activity.id }}</td> |
15 | | - <td class="col-4 ">{{ activity.name }}</td> |
| 15 | + <td class="col-4">{{ activity.name }}</td> |
16 | 16 | <td class="col-2 text-center"> |
17 | 17 | <button type="button" class="btn btn-sm btn-primary" (click)="updateActivity(activity.id)"> |
18 | 18 | <i class="fa fa-pencil fa-xs"></i> |
19 | 19 | </button> |
20 | | - <button type="button" class="btn btn-sm btn-danger ml-2" data-toggle="modal" data-target="#deleteModal" |
21 | | - (click)="openModal(activity)"> |
| 20 | + <button |
| 21 | + type="button" |
| 22 | + class="btn btn-sm btn-danger ml-2" |
| 23 | + data-toggle="modal" |
| 24 | + data-target="#deleteModal" |
| 25 | + (click)="openModal(activity)" |
| 26 | + > |
22 | 27 | <i class="fas fa-trash-alt fa-xs"></i> |
23 | 28 | </button> |
24 | 29 | </td> |
25 | 30 | <td class="col-2 text-center"> |
26 | | - status |
| 31 | + <ui-switch |
| 32 | + size="small" |
| 33 | + (change)="switchStatus('active')" |
| 34 | + [checked]="activity.status === 'active'" |
| 35 | + ></ui-switch> |
27 | 36 | </td> |
28 | 37 | </tr> |
29 | 38 | </tbody> |
30 | 39 | </table> |
31 | 40 | </div> |
32 | 41 |
|
33 | | -<app-dialog |
34 | | - *ngIf="showModal" |
35 | | - class="modal fade" |
36 | | - id="deleteModal" |
37 | | - tabindex="-1" |
38 | | - role="dialog" |
| 42 | +<app-dialog |
| 43 | + *ngIf="showModal" |
| 44 | + class="modal fade" |
| 45 | + id="deleteModal" |
| 46 | + tabindex="-1" |
| 47 | + role="dialog" |
39 | 48 | aria-hidden="true" |
40 | | - [title]="'Delete Activity'" |
41 | | - [body]="message" |
42 | | - (closeModalEvent)="deleteActivity()"> |
| 49 | + [title]="'Delete Activity'" |
| 50 | + [body]="message" |
| 51 | + (closeModalEvent)="deleteActivity()" |
| 52 | +> |
43 | 53 | </app-dialog> |
0 commit comments