mirror of
https://github.com/zitadel/zitadel.git
synced 2025-11-15 13:43:27 +00:00
* fix(console, e2e): static data-e2e attributes, consistent naming * quote cypress attribute selectors * Update console/src/app/modules/policies/private-labeling-policy/private-labeling-policy.component.html Co-authored-by: Elio Bischof <eliobischof@gmail.com> * Update console/src/app/modules/project-roles-table/project-roles-table.component.html Co-authored-by: Elio Bischof <eliobischof@gmail.com> * fix , Co-authored-by: Elio Bischof <eliobischof@gmail.com>
51 lines
1.6 KiB
HTML
51 lines
1.6 KiB
HTML
<h2>{{ 'POLICY.TITLE' | translate }}</h2>
|
|
|
|
<p class="top-desc cnsl-secondary-text">{{ 'POLICY.DESCRIPTION' | translate }}</p>
|
|
|
|
<div class="row-lyt" [ngClass]="{ more: type === PolicyComponentServiceType.ADMIN }">
|
|
<ng-container *ngFor="let setting of SETTINGS">
|
|
<ng-template
|
|
cnslHasRole
|
|
[hasRole]="
|
|
type === PolicyComponentServiceType.ADMIN
|
|
? setting.iamWithRole
|
|
: type === PolicyComponentServiceType.MGMT
|
|
? setting.orgWithRole
|
|
: []
|
|
"
|
|
>
|
|
<div class="p-item card" @policy data-e2e="policy-card">
|
|
<div class="avatar {{ setting.color }}">
|
|
<mat-icon *ngIf="setting.svgIcon" class="mat-icon" [svgIcon]="setting.svgIcon"></mat-icon>
|
|
<i *ngIf="setting.icon" class="icon {{ setting.icon }}"></i>
|
|
</div>
|
|
<div class="title">
|
|
<span>{{ setting.i18nTitle | translate }}</span>
|
|
</div>
|
|
|
|
<p class="desc cnsl-secondary-text">
|
|
{{ setting.i18nDesc ? (setting.i18nDesc | translate) : '' }}
|
|
</p>
|
|
|
|
<span class="fill-space"></span>
|
|
|
|
<div class="btn-wrapper">
|
|
<a
|
|
[routerLink]="
|
|
type === PolicyComponentServiceType.ADMIN
|
|
? setting.iamRouterLink
|
|
: type === PolicyComponentServiceType.MGMT
|
|
? setting.orgRouterLink
|
|
: null
|
|
"
|
|
[queryParams]="setting.queryParams"
|
|
mat-stroked-button
|
|
>
|
|
{{ 'POLICY.BTN_EDIT' | translate }}
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</ng-template>
|
|
</ng-container>
|
|
</div>
|