mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-04 21:32:15 +00:00
* new console * move npm ci to angular build * rel path for assets * local grpc copy * login policy, rm clear views, features rel path * lock Co-authored-by: Livio Amstutz <[email protected]>
34 lines
1.7 KiB
HTML
34 lines
1.7 KiB
HTML
<div class="max-width-container">
|
|
<div class="enlarged-container">
|
|
<div class="project-title-row">
|
|
<h1>{{ 'PROJECT.PAGES.LIST' | translate }}</h1>
|
|
<a mat-icon-button href="https://docs.zitadel.ch/docs/guides/basics/projects" rel="noreferrer" target="_blank">
|
|
<i class="las la-info-circle"></i>
|
|
</a>
|
|
</div>
|
|
<p class="sub cnsl-secondary-text max-width-description">{{ 'PROJECT.PAGES.LISTDESCRIPTION' | translate }}</p>
|
|
|
|
<div class="projects-controls">
|
|
<div class="project-type-actions">
|
|
<button class="type-button" [ngClass]="{'active': (projectType$ | async) === ProjectType.PROJECTTYPE_OWNED}"
|
|
(click)="setType(ProjectType.PROJECTTYPE_OWNED)">{{'PROJECT.PAGES.TYPE.OWNED' | translate}}
|
|
({{((mgmtService?.ownedProjectsCount | async) ?? 0)}})</button>
|
|
<button class="type-button" [ngClass]="{'active': (projectType$ | async) === ProjectType.PROJECTTYPE_GRANTED}"
|
|
(click)="setType(ProjectType.PROJECTTYPE_GRANTED)">{{'PROJECT.PAGES.TYPE.GRANTED' | translate}}
|
|
({{((mgmtService?.grantedProjectsCount | async) ?? 0)}})</button>
|
|
</div>
|
|
<span class="fill-space"></span>
|
|
<button class="grid-btn" (click)="grid = !grid" mat-icon-button [attr.data-e2e]="'toggle-grid'">
|
|
<i *ngIf="grid" class="show list view las la-th-list"></i>
|
|
<i *ngIf="!grid" class="las la-border-all"></i>
|
|
</button>
|
|
</div>
|
|
|
|
<cnsl-project-grid *ngIf="grid" [projectType$]="projectType$" [zitadelProjectId]="zitadelProjectId"
|
|
(emitAddProject)="addProject()">
|
|
</cnsl-project-grid>
|
|
|
|
<cnsl-project-list *ngIf="!grid" [projectType$]="projectType$" [zitadelProjectId]="zitadelProjectId">
|
|
</cnsl-project-list>
|
|
</div>
|
|
</div> |