mirror of
https://github.com/andwati/zitadel.git
synced 2026-10-18 05:52:51 +00:00
This PR implements a component which is used to render the feature settings in a generic way. All features besides`loginV2` and `improvedPerformance` are rendered. Note: The feature flags are not autogenerated as the console needs descriptions for the respective features and there are multiple types where additional fields like text input is required Closes #9090 --------- Co-authored-by: conblem <[email protected]>
39 lines
1.3 KiB
HTML
39 lines
1.3 KiB
HTML
<div class="feature-settings-wrapper">
|
|
<div class="feature-title-row">
|
|
<h2>{{ 'DESCRIPTIONS.SETTINGS.FEATURES.TITLE' | translate }}</h2>
|
|
<a
|
|
mat-icon-button
|
|
href="https://zitadel.com/docs/apis/resources/feature_service_v2/feature-service"
|
|
rel="noreferrer"
|
|
target="_blank"
|
|
>
|
|
<mat-icon class="icon">info_outline</mat-icon>
|
|
</a>
|
|
</div>
|
|
<p class="events-desc cnsl-secondary-text">{{ 'DESCRIPTIONS.SETTINGS.FEATURES.DESCRIPTION' | translate }}</p>
|
|
|
|
<ng-template cnslHasRole [hasRole]="['iam.restrictions.write']">
|
|
<button color="warn" (click)="resetSettings()" mat-stroked-button>
|
|
{{ 'SETTING.FEATURES.RESET' | translate }}
|
|
</button>
|
|
</ng-template>
|
|
|
|
<cnsl-card *ngIf="toggleStates && featureData">
|
|
<div class="features">
|
|
<cnsl-feature-toggle
|
|
*ngFor="let key of toggleStateKeys"
|
|
[featureData]="featureData"
|
|
[toggleStates]="toggleStates"
|
|
[toggleStateKey]="key"
|
|
(toggleChange)="validateAndSave()"
|
|
></cnsl-feature-toggle>
|
|
</div>
|
|
</cnsl-card>
|
|
</div>
|
|
|
|
<ng-template #sourceLabel let-source="source" let-last="last">
|
|
<span class="state" *ngIf="source === Source.SOURCE_SYSTEM">
|
|
{{ 'SETTING.FEATURES.SOURCE.' + source | translate }}
|
|
</span>
|
|
</ng-template>
|