fix: deactivate only active users, activate only inactive users (#3111)

This commit is contained in:
Max Peintner
2022-01-25 10:51:40 +00:00
committed by GitHub
parent 542651707a
commit 159d82ad8e
2 changed files with 11 additions and 7 deletions
@@ -23,7 +23,7 @@
<button mat-menu-item color="warn" *ngIf="user?.state === UserState.USER_STATE_LOCKED"
(click)="unlockUser()">{{'USER.PAGES.UNLOCK' |
translate}}</button>
<button mat-menu-item *ngIf="user?.state !== UserState.USER_STATE_INACTIVE"
<button mat-menu-item *ngIf="user?.state === UserState.USER_STATE_ACTIVE"
(click)="changeState(UserState.USER_STATE_INACTIVE)">{{'USER.PAGES.DEACTIVATE' |
translate}}</button>
<button mat-menu-item *ngIf="user?.state === UserState.USER_STATE_INACTIVE"