mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-27 14:48:45 +00:00
33 lines
1.2 KiB
HTML
33 lines
1.2 KiB
HTML
<div class="max-width-container">
|
|
<div class="enlarged-container" [ngSwitch]="type">
|
|
<ng-container *ngSwitchCase="Type.TYPE_HUMAN">
|
|
<div class="users-title-row">
|
|
<h1>{{ 'USER.PAGES.LIST' | translate }}</h1>
|
|
<a mat-icon-button href="https://zitadel.com/docs/concepts/structure/users" rel="noreferrer" target="_blank">
|
|
<i class="las la-info-circle"></i>
|
|
</a>
|
|
</div>
|
|
<p class="user-list-sub cnsl-secondary-text">{{ 'USER.PAGES.DESCRIPTION' | translate }}</p>
|
|
|
|
<cnsl-user-table
|
|
[type]="Type.TYPE_HUMAN"
|
|
[canWrite]="!!(['user.write$'] | hasRole | async)"
|
|
[canDelete]="!!(['user.delete$'] | hasRole | async)"
|
|
>
|
|
</cnsl-user-table>
|
|
</ng-container>
|
|
|
|
<ng-container *ngSwitchCase="Type.TYPE_MACHINE">
|
|
<h1>{{ 'USER.PAGES.LISTMACHINE' | translate }}</h1>
|
|
<p class="user-list-sub cnsl-secondary-text">{{ 'USER.PAGES.DESCRIPTIONMACHINE' | translate }}</p>
|
|
|
|
<cnsl-user-table
|
|
[type]="Type.TYPE_MACHINE"
|
|
[canWrite]="!!(['user.write$'] | hasRole | async)"
|
|
[canDelete]="!!(['user.delete$'] | hasRole | async)"
|
|
>
|
|
</cnsl-user-table>
|
|
</ng-container>
|
|
</div>
|
|
</div>
|