Merge pull request #4916 from GabrielInTheWorld/fixUserIcons
Changes the icon of 'is gremium' and 'is active'
This commit is contained in:
commit
4988b758ba
@ -260,8 +260,10 @@
|
||||
<span class="state-icons">
|
||||
<span>{{ user.short_name }}</span>
|
||||
<mat-icon *ngIf="user.is_present" matTooltip="{{ 'Is present' | translate }}">check_box</mat-icon>
|
||||
<mat-icon *ngIf="user.is_committee" matTooltip="{{ 'Is committee' | translate }}">stars</mat-icon>
|
||||
<mat-icon *ngIf="!user.is_active" matTooltip="{{ 'Inactive' | translate }}">block</mat-icon>
|
||||
<mat-icon *ngIf="user.is_committee" matTooltip="{{ 'Is committee' | translate }}">account_balance</mat-icon>
|
||||
<mat-icon *ngIf="!user.is_active && isAllowed('seeExtra')" matTooltip="{{ 'Inactive' | translate }}"
|
||||
>block</mat-icon
|
||||
>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
|
@ -36,8 +36,14 @@
|
||||
></a>
|
||||
<div class="nameCell">
|
||||
<span>{{ name }}</span>
|
||||
<mat-icon matTooltip="{{ 'Is committee' | translate }}" *ngIf="user.is_committee">stars</mat-icon>
|
||||
<mat-icon matTooltip="{{ 'Inactive' | translate }}" *ngIf="!user.is_active">block</mat-icon>
|
||||
</div>
|
||||
<div class="icon-group">
|
||||
<mat-icon matTooltip="{{ 'Is committee' | translate }}" *ngIf="user.is_committee">account_balance</mat-icon>
|
||||
<mat-icon
|
||||
matTooltip="{{ 'Inactive' | translate }}"
|
||||
*ngIf="!user.is_active && this.operator.hasPerms('users.see_extra')"
|
||||
>block</mat-icon
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
@ -14,12 +14,20 @@
|
||||
display: grid;
|
||||
}
|
||||
|
||||
.detail-link {
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.nameCell {
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
z-index: 1;
|
||||
display: flex;
|
||||
|
||||
span {
|
||||
margin-right: 5px;
|
||||
}
|
||||
}
|
||||
|
||||
.icon-group {
|
||||
z-index: 3;
|
||||
}
|
||||
|
@ -161,7 +161,7 @@ export class UserListComponent extends BaseListViewComponent<ViewUser> implement
|
||||
private groupRepo: GroupRepositoryService,
|
||||
private choiceService: ChoiceService,
|
||||
private router: Router,
|
||||
private operator: OperatorService,
|
||||
public operator: OperatorService,
|
||||
protected csvExport: CsvExportService,
|
||||
private promptService: PromptService,
|
||||
public filterService: UserFilterListService,
|
||||
|
Loading…
Reference in New Issue
Block a user