Files
zitadel/console/src/app/modules/features/features.component.html
T
Max PeintnerGitHubLivio Amstutzmffapdependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
e9a457ddf5 fix(console): some imperfections, delete memberships from detail, role delete from table, app state (#1551)
* app state, roles, remove memberships, feature detail

* chore(deps): bump tslib from 2.0.3 to 2.2.0 in /console (#1549)

* fix: pass necessary webauthn data through events (#1541)

* fix: pass necessary webauthn data through events (#1544)

* docs: update readme (#1460) (#1545)

* Update readme

* Apply suggestions from code review but features

Co-authored-by: Florian Forster <[email protected]>

* Update README.md

Co-authored-by: Florian Forster <[email protected]>

Co-authored-by: Maximilian Panne <[email protected]>
Co-authored-by: Florian Forster <[email protected]>
(cherry picked from commit 5c5b13cf84aca3641ec8fd43036c7ec25479d598)

Co-authored-by: mffap <[email protected]>

* chore(deps): bump tslib from 2.0.3 to 2.2.0 in /console

Bumps [tslib](https://github.com/Microsoft/tslib) from 2.0.3 to 2.2.0.
- [Release notes](https://github.com/Microsoft/tslib/releases)
- [Commits](https://github.com/Microsoft/tslib/compare/2.0.3...2.2.0)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: Livio Amstutz <[email protected]>
Co-authored-by: mffap <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps-dev): bump @angular/language-service from 11.2.0 to 11.2.8 in /console (#1521)

* fix: pass necessary webauthn data through events (#1541)

* fix: pass necessary webauthn data through events (#1544)

* docs: update readme (#1460) (#1545)

* Update readme

* Apply suggestions from code review but features

Co-authored-by: Florian Forster <[email protected]>

* Update README.md

Co-authored-by: Florian Forster <[email protected]>

Co-authored-by: Maximilian Panne <[email protected]>
Co-authored-by: Florian Forster <[email protected]>
(cherry picked from commit 5c5b13cf84aca3641ec8fd43036c7ec25479d598)

Co-authored-by: mffap <[email protected]>

* chore(deps-dev): bump @angular/language-service in /console

Bumps [@angular/language-service](https://github.com/angular/angular/tree/HEAD/packages/language-service) from 11.2.0 to 11.2.8.
- [Release notes](https://github.com/angular/angular/releases)
- [Changelog](https://github.com/angular/angular/blob/11.2.8/CHANGELOG.md)
- [Commits](https://github.com/angular/angular/commits/11.2.8/packages/language-service)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: Livio Amstutz <[email protected]>
Co-authored-by: mffap <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps-dev): bump @angular-devkit/build-angular from 0.1102.1 to 0.1102.7 in /console (#1520)

* fix: pass necessary webauthn data through events (#1541)

* fix: pass necessary webauthn data through events (#1544)

* docs: update readme (#1460) (#1545)

* Update readme

* Apply suggestions from code review but features

Co-authored-by: Florian Forster <[email protected]>

* Update README.md

Co-authored-by: Florian Forster <[email protected]>

Co-authored-by: Maximilian Panne <[email protected]>
Co-authored-by: Florian Forster <[email protected]>
(cherry picked from commit 5c5b13cf84aca3641ec8fd43036c7ec25479d598)

Co-authored-by: mffap <[email protected]>

* chore(deps-dev): bump @angular-devkit/build-angular in /console

Bumps [@angular-devkit/build-angular](https://github.com/angular/angular-cli) from 0.1102.1 to 0.1102.7.
- [Release notes](https://github.com/angular/angular-cli/releases)
- [Commits](https://github.com/angular/angular-cli/commits)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: Livio Amstutz <[email protected]>
Co-authored-by: mffap <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps-dev): bump karma from 6.1.1 to 6.3.2 in /console (#1519)

* fix: pass necessary webauthn data through events (#1541)

* fix: pass necessary webauthn data through events (#1544)

* docs: update readme (#1460) (#1545)

* Update readme

* Apply suggestions from code review but features

Co-authored-by: Florian Forster <[email protected]>

* Update README.md

Co-authored-by: Florian Forster <[email protected]>

Co-authored-by: Maximilian Panne <[email protected]>
Co-authored-by: Florian Forster <[email protected]>
(cherry picked from commit 5c5b13cf84aca3641ec8fd43036c7ec25479d598)

Co-authored-by: mffap <[email protected]>

* chore(deps-dev): bump karma from 6.1.1 to 6.3.2 in /console

Bumps [karma](https://github.com/karma-runner/karma) from 6.1.1 to 6.3.2.
- [Release notes](https://github.com/karma-runner/karma/releases)
- [Changelog](https://github.com/karma-runner/karma/blob/master/CHANGELOG.md)
- [Commits](https://github.com/karma-runner/karma/compare/v6.1.1...v6.3.2)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: Livio Amstutz <[email protected]>
Co-authored-by: mffap <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps): bump google-protobuf from 3.13.0 to 3.15.7 in /console (#1518)

* fix: pass necessary webauthn data through events (#1541)

* fix: pass necessary webauthn data through events (#1544)

* docs: update readme (#1460) (#1545)

* Update readme

* Apply suggestions from code review but features

Co-authored-by: Florian Forster <[email protected]>

* Update README.md

Co-authored-by: Florian Forster <[email protected]>

Co-authored-by: Maximilian Panne <[email protected]>
Co-authored-by: Florian Forster <[email protected]>
(cherry picked from commit 5c5b13cf84aca3641ec8fd43036c7ec25479d598)

Co-authored-by: mffap <[email protected]>

* chore(deps): bump google-protobuf from 3.13.0 to 3.15.7 in /console

Bumps [google-protobuf](https://github.com/protocolbuffers/protobuf) from 3.13.0 to 3.15.7.
- [Release notes](https://github.com/protocolbuffers/protobuf/releases)
- [Changelog](https://github.com/protocolbuffers/protobuf/blob/master/generate_changelog.py)
- [Commits](https://github.com/protocolbuffers/protobuf/compare/v3.13.0...v3.15.7)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: Livio Amstutz <[email protected]>
Co-authored-by: mffap <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps-dev): bump @angular/cli from 11.2.0 to 11.2.7 in /console (#1517)

* fix: pass necessary webauthn data through events (#1541)

* fix: pass necessary webauthn data through events (#1544)

* docs: update readme (#1460) (#1545)

* Update readme

* Apply suggestions from code review but features

Co-authored-by: Florian Forster <[email protected]>

* Update README.md

Co-authored-by: Florian Forster <[email protected]>

Co-authored-by: Maximilian Panne <[email protected]>
Co-authored-by: Florian Forster <[email protected]>
(cherry picked from commit 5c5b13cf84aca3641ec8fd43036c7ec25479d598)

Co-authored-by: mffap <[email protected]>

* chore(deps-dev): bump @angular/cli from 11.2.0 to 11.2.7 in /console

Bumps [@angular/cli](https://github.com/angular/angular-cli) from 11.2.0 to 11.2.7.
- [Release notes](https://github.com/angular/angular-cli/releases)
- [Commits](https://github.com/angular/angular-cli/compare/v11.2.0...v11.2.7)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: Livio Amstutz <[email protected]>
Co-authored-by: mffap <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Max Peintner <[email protected]>

* chore(deps-dev): bump @types/node from 14.14.28 to 14.14.37 in /console (#1489)

* fix: pass necessary webauthn data through events (#1541)

* fix: pass necessary webauthn data through events (#1544)

* docs: update readme (#1460) (#1545)

* Update readme

* Apply suggestions from code review but features

Co-authored-by: Florian Forster <[email protected]>

* Update README.md

Co-authored-by: Florian Forster <[email protected]>

Co-authored-by: Maximilian Panne <[email protected]>
Co-authored-by: Florian Forster <[email protected]>
(cherry picked from commit 5c5b13cf84aca3641ec8fd43036c7ec25479d598)

Co-authored-by: mffap <[email protected]>

* chore(deps-dev): bump @types/node from 14.14.28 to 14.14.37 in /console

Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.14.28 to 14.14.37.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: Livio Amstutz <[email protected]>
Co-authored-by: mffap <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Livio Amstutz <[email protected]>
Co-authored-by: mffap <[email protected]>
2021-04-07 16:46:35 +02:00

86 lines
4.2 KiB
HTML

<app-detail-layout [backRouterLink]="[ serviceType === FeatureServiceType.ADMIN ? '/iam/policies' : '/org']"
[title]="'ZITADEL ' +features?.tier.name + ' ' + ('FEATURES.TITLE' | translate)" [description]="'FEATURES.DESCRIPTION' | translate">
<p class="default" *ngIf="isDefault"> {{'POLICY.DEFAULTLABEL' | translate}}</p>
<ng-template appHasRole [appHasRole]="['iam.features.delete']">
<button *ngIf="serviceType === FeatureServiceType.MGMT && !isDefault"
matTooltip="{{'POLICY.RESET' | translate}}" color="warn" (click)="resetFeatures()" mat-stroked-button>
{{'POLICY.RESET' | translate}}
</button>
</ng-template>
<div class="content" *ngIf="features">
<div class="row">
<span class="left-desc">{{'FEATURES.DATA.AUDITLOGRETENTION' | translate}}</span>
<span class="fill-space"></span>
<span>{{features.auditLogRetention | timestampToRetention }} {{'FEATURES.RETENTIONHOURS' | translate}}</span>
</div>
<div class="row">
<span class="left-desc">{{'FEATURES.DATA.LOGINPOLICYUSERNAMELOGIN' | translate}}</span>
<span class="fill-space"></span>
<mat-slide-toggle color="primary" name="hasNumber" ngDefaultControl
[(ngModel)]="features.loginPolicyUsernameLogin"
[disabled]="(['iam.features.write'] | hasRole | async) == false">
</mat-slide-toggle>
</div>
<div class="row">
<span class="left-desc">{{'FEATURES.DATA.LOGINPOLICYREGISTRATION' | translate}}</span>
<span class="fill-space"></span>
<mat-slide-toggle color="primary" name="hasNumber" ngDefaultControl
[(ngModel)]="features.loginPolicyRegistration"
[disabled]="(['iam.features.write'] | hasRole | async) == false">
</mat-slide-toggle>
</div>
<div class="row">
<span class="left-desc">{{'FEATURES.DATA.LOGINPOLICYIDP' | translate}}</span>
<span class="fill-space"></span>
<mat-slide-toggle color="primary" name="hasNumber" ngDefaultControl [(ngModel)]="features.loginPolicyIdp"
[disabled]="(['iam.features.write'] | hasRole | async) == false">
</mat-slide-toggle>
</div>
<div class="row">
<span class="left-desc">{{'FEATURES.DATA.LOGINPOLICYFACTORS' | translate}}</span>
<span class="fill-space"></span>
<mat-slide-toggle color="primary" name="hasNumber" ngDefaultControl
[(ngModel)]="features.loginPolicyFactors"
[disabled]="(['iam.features.write'] | hasRole | async) == false">
</mat-slide-toggle>
</div>
<div class="row">
<span class="left-desc">{{'FEATURES.DATA.LOGINPOLICYPASSWORDLESS' | translate}}</span>
<span class="fill-space"></span>
<mat-slide-toggle color="primary" name="hasNumber" ngDefaultControl
[(ngModel)]="features.loginPolicyPasswordless"
[disabled]="(['iam.features.write'] | hasRole | async) == false">
</mat-slide-toggle>
</div>
<div class="row">
<span class="left-desc">{{'FEATURES.DATA.LOGINPOLICYCOMPLEXITYPOLICY' | translate}}</span>
<span class="fill-space"></span>
<mat-slide-toggle color="primary" name="hasNumber" ngDefaultControl
[(ngModel)]="features.passwordComplexityPolicy"
[disabled]="(['iam.features.write'] | hasRole | async) == false">
</mat-slide-toggle>
</div>
<div class="row">
<span class="left-desc">{{'FEATURES.DATA.LABELPOLICY' | translate}}</span>
<span class="fill-space"></span>
<mat-slide-toggle color="primary" name="hasNumber" ngDefaultControl [(ngModel)]="features.labelPolicy"
[disabled]="(['iam.features.write'] | hasRole | async) == false">
</mat-slide-toggle>
</div>
</div>
<div class="btn-container">
<button (click)="savePolicy()" [disabled]="(['iam.features.write'] | hasRole | async) == false" color="primary"
type="submit" mat-raised-button>{{ 'ACTIONS.SAVE' | translate
}}</button>
</div>
</app-detail-layout>