3
I have a list of users and each user can be inactivated or activated. I would like the user when 'false' (disabled) to change the color to gray.
HTML:
<tbody>
<tr *ngFor="let user of users" >
<td>{{user.user}}</td>
<td>{{user.email}}</td>
<td>
<button class="btn btn-danger" data-toggle="modal" (click)="getUser(user)" data-target="#exampleModal">Recuperar Senha</button>
</td>
<td >
<button [hidden]="user.active == false" class="btn btn-danger" (click)="desativarUsuario(user)" >Desativar</button>
<button [hidden]="user.active == true" class="btn btn-danger" (click)="desativarUsuario(user)" >Ativar</button>
</td>
</tr>
</tbody>