mirror of
https://github.com/andwati/zitadel.git
synced 2026-10-24 08:12:15 +00:00
* feat: privatelabeling setting, query param for context * lint * Update console/src/assets/i18n/de.json Co-authored-by: Fabi <[email protected]> * Update console/src/assets/i18n/de.json Co-authored-by: Fabi <[email protected]> * Update console/src/assets/i18n/en.json Co-authored-by: Fabi <[email protected]> * Update console/src/assets/i18n/en.json Co-authored-by: Fabi <[email protected]> Co-authored-by: Fabi <[email protected]>
45 lines
2.5 KiB
HTML
45 lines
2.5 KiB
HTML
<app-detail-layout [maxWidth]="false" [backRouterLink]="[ serviceType === PolicyComponentServiceType.ADMIN ? '/iam/policies' : '/org']"
|
|
[title]="'POLICY.MESSAGE_TEXTS.TITLE' | translate"
|
|
[description]="'POLICY.MESSAGE_TEXTS.DESCRIPTION' | translate">
|
|
|
|
<div class="top-actions">
|
|
<div class="message-type">
|
|
<button (click)="setCurrentType(type.value)" [ngClass]="{'active': currentType == type.value}" mat-button *ngFor="let type of MESSAGETYPES | keyvalue">{{'POLICY.MESSAGE_TEXTS.TYPES.'+type.value | translate}}</button>
|
|
</div>
|
|
|
|
<cnsl-form-field class="language">
|
|
<cnsl-label>{{ 'POLICY.LOGIN_TEXTS.LOCALE' | translate }}</cnsl-label>
|
|
<mat-select [(ngModel)]="locale" name="locale" (selectionChange)="changeLocale($event)">
|
|
<mat-option *ngFor="let loc of LOCALES" [value]="loc">
|
|
<div class="centerline">
|
|
<span>{{loc}} <span class="lighter">| {{'POLICY.LOGIN_TEXTS.LOCALES.'+loc | translate }}</span></span>
|
|
</div>
|
|
</mat-option>
|
|
</mat-select>
|
|
</cnsl-form-field>
|
|
</div>
|
|
|
|
<cnsl-info-section class="warn"
|
|
*ngIf="serviceType == PolicyComponentServiceType.MGMT && (['custom_text.message'] | hasFeature | async) == false"
|
|
type="WARN">
|
|
{{'FEATURES.NOTAVAILABLE' | translate: ({value:
|
|
'custom_text.message'})}}
|
|
</cnsl-info-section>
|
|
|
|
<div class="content" >
|
|
<cnsl-edit-text [chips]="chips[currentType]" [disabled]="serviceType == PolicyComponentServiceType.MGMT && (['custom_text.message'] | hasFeature | async) == false" label="one" [default$]="getDefaultInitMessageTextMap$" [current$]="getCustomInitMessageTextMap$" (changedValues)="updateCurrentValues(
|
|
$event)"></cnsl-edit-text>
|
|
</div>
|
|
|
|
<div class="actions">
|
|
<button class="reset-button" [disabled]="serviceType == PolicyComponentServiceType.MGMT && (['custom_text.message'] | hasFeature | async) == false" (click)="resetDefault()" color="warn" type="submit"
|
|
mat-stroked-button><i class="las la-history"></i> {{ 'ACTIONS.RESETDEFAULT' | translate }}</button>
|
|
<button class="save-button" [disabled]="!updateRequest || serviceType == PolicyComponentServiceType.MGMT && (['custom_text.message'] | hasFeature | async) == false" (click)="saveCurrentMessage()" color="primary" type="submit"
|
|
mat-raised-button>{{ 'ACTIONS.SAVE' | translate }}</button>
|
|
</div>
|
|
|
|
<div class="divider"></div>
|
|
|
|
<app-policy-grid [currentPolicy]="currentPolicy" [type]="serviceType" tagForFilter="text"></app-policy-grid>
|
|
</app-detail-layout>
|