mirror of
https://github.com/andwati/zitadel.git
synced 2026-10-18 05:52:51 +00:00
* feat: show available orgs (project) grants * feat: add e2e for project grant * feat: add bulgarian missing translations * feat: update docs * fix: add @peintnermax suggested changes --------- Co-authored-by: Max Peintner <[email protected]>
59 lines
1.8 KiB
HTML
59 lines
1.8 KiB
HTML
<cnsl-create-layout
|
|
title="{{ 'PROJECT.GRANT.CREATE.TITLE' | translate }}"
|
|
[createSteps]="createSteps"
|
|
[currentCreateStep]="currentCreateStep"
|
|
(closed)="close()"
|
|
>
|
|
<ng-container *ngIf="currentCreateStep === 1">
|
|
<h1>{{ 'PROJECT.GRANT.CREATE.SEL_ORG' | translate }}</h1>
|
|
<cnsl-search-org-autocomplete class="block" (selectionChanged)="selectOrg($event)"> </cnsl-search-org-autocomplete>
|
|
<span *ngIf="org"> {{ 'PROJECT.GRANT.CREATE.FOR_ORG' | translate }} {{ org.name }} - {{ org.primaryDomain }} </span>
|
|
</ng-container>
|
|
|
|
<ng-container *ngIf="currentCreateStep === 2">
|
|
<h1>{{ 'PROJECT.GRANT.CREATE.SEL_ROLES' | translate }}</h1>
|
|
|
|
<cnsl-card *ngIf="projectId">
|
|
<cnsl-project-roles-table
|
|
[displayedColumns]="['select', 'key', 'displayname', 'group', 'creationDate', 'changeDate']"
|
|
(changedSelection)="selectRoles($event)"
|
|
[projectId]="projectId"
|
|
>
|
|
</cnsl-project-roles-table>
|
|
</cnsl-card>
|
|
</ng-container>
|
|
|
|
<div class="btn-container">
|
|
<ng-container *ngIf="currentCreateStep === 1">
|
|
<button
|
|
[disabled]="!org"
|
|
(click)="next()"
|
|
color="primary"
|
|
mat-raised-button
|
|
class="big-button"
|
|
cdkFocusInitial
|
|
data-e2e="project-grant-continue"
|
|
>
|
|
{{ 'ACTIONS.CONTINUE' | translate }}
|
|
</button>
|
|
</ng-container>
|
|
|
|
<ng-container *ngIf="currentCreateStep === createSteps">
|
|
<button (click)="previous()" mat-stroked-button class="small-button">
|
|
{{ 'ACTIONS.BACK' | translate }}
|
|
</button>
|
|
<button
|
|
color="primary"
|
|
[disabled]="!org"
|
|
(click)="addGrant()"
|
|
mat-raised-button
|
|
class="big-button"
|
|
cdkFocusInitial
|
|
data-e2e="save-project-grant-button"
|
|
>
|
|
{{ 'ACTIONS.SAVE' | translate }}
|
|
</button>
|
|
</ng-container>
|
|
</div>
|
|
</cnsl-create-layout>
|