mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-13 03:24:26 +00:00
fix: idp style field, idp redirect, table (#883)
This commit is contained in:
parent
57a3ccc91b
commit
cfd119924f
@ -29,7 +29,7 @@ tr {
|
||||
outline: none;
|
||||
|
||||
&.disabled * {
|
||||
color: var(--grey);
|
||||
opacity: .8;
|
||||
}
|
||||
|
||||
button {
|
||||
|
@ -170,7 +170,13 @@ export class IdpTableComponent implements OnInit {
|
||||
if (row.id) {
|
||||
switch (this.serviceType) {
|
||||
case PolicyComponentServiceType.MGMT:
|
||||
return ['/org', 'idp', row.id];
|
||||
switch ((row as MgmtIdpView.AsObject).providerType) {
|
||||
case IdpProviderType.IDPPROVIDERTYPE_SYSTEM:
|
||||
return ['/iam', 'idp', row.id];
|
||||
case IdpProviderType.IDPPROVIDERTYPE_ORG:
|
||||
return ['/org', 'idp', row.id];
|
||||
}
|
||||
break;
|
||||
case PolicyComponentServiceType.ADMIN:
|
||||
return ['/iam', 'idp', row.id];
|
||||
}
|
||||
|
@ -12,6 +12,14 @@
|
||||
<mat-label>{{ 'IDP.NAME' | translate }}</mat-label>
|
||||
<input matInput formControlName="name" />
|
||||
</mat-form-field>
|
||||
<mat-form-field class="formfield" appearance="outline">
|
||||
<mat-label>{{ 'IDP.STYLE' | translate }}</mat-label>
|
||||
<mat-select formControlName="stylingType">
|
||||
<mat-option *ngFor="let field of styleFields" [value]="field">
|
||||
{{ 'IDP.STYLEFIELD.'+field | translate }}
|
||||
</mat-option>
|
||||
</mat-select>
|
||||
</mat-form-field>
|
||||
</div>
|
||||
</ng-container>
|
||||
|
||||
@ -75,14 +83,6 @@
|
||||
</mat-option>
|
||||
</mat-select>
|
||||
</mat-form-field>
|
||||
<mat-form-field class="formfield" appearance="outline">
|
||||
<mat-label>{{ 'IDP.STYLE' | translate }}</mat-label>
|
||||
<mat-select formControlName="usernameMapping">
|
||||
<mat-option *ngFor="let field of styleFields" [value]="field">
|
||||
{{ 'IDP.STYLEFIELD.'+field | translate }}
|
||||
</mat-option>
|
||||
</mat-select>
|
||||
</mat-form-field>
|
||||
</div>
|
||||
</ng-container>
|
||||
|
||||
|
@ -66,7 +66,6 @@ export class IdpComponent implements OnInit, OnDestroy {
|
||||
});
|
||||
|
||||
this.route.data.pipe(switchMap(data => {
|
||||
console.log(data.serviceType);
|
||||
this.serviceType = data.serviceType;
|
||||
switch (this.serviceType) {
|
||||
case PolicyComponentServiceType.MGMT:
|
||||
|
Loading…
Reference in New Issue
Block a user