mirror of
https://github.com/zitadel/zitadel.git
synced 2025-03-04 03:05:13 +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;
|
outline: none;
|
||||||
|
|
||||||
&.disabled * {
|
&.disabled * {
|
||||||
color: var(--grey);
|
opacity: .8;
|
||||||
}
|
}
|
||||||
|
|
||||||
button {
|
button {
|
||||||
|
@ -170,7 +170,13 @@ export class IdpTableComponent implements OnInit {
|
|||||||
if (row.id) {
|
if (row.id) {
|
||||||
switch (this.serviceType) {
|
switch (this.serviceType) {
|
||||||
case PolicyComponentServiceType.MGMT:
|
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:
|
case PolicyComponentServiceType.ADMIN:
|
||||||
return ['/iam', 'idp', row.id];
|
return ['/iam', 'idp', row.id];
|
||||||
}
|
}
|
||||||
|
@ -12,6 +12,14 @@
|
|||||||
<mat-label>{{ 'IDP.NAME' | translate }}</mat-label>
|
<mat-label>{{ 'IDP.NAME' | translate }}</mat-label>
|
||||||
<input matInput formControlName="name" />
|
<input matInput formControlName="name" />
|
||||||
</mat-form-field>
|
</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>
|
</div>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
|
|
||||||
@ -75,14 +83,6 @@
|
|||||||
</mat-option>
|
</mat-option>
|
||||||
</mat-select>
|
</mat-select>
|
||||||
</mat-form-field>
|
</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>
|
</div>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
|
|
||||||
|
@ -66,7 +66,6 @@ export class IdpComponent implements OnInit, OnDestroy {
|
|||||||
});
|
});
|
||||||
|
|
||||||
this.route.data.pipe(switchMap(data => {
|
this.route.data.pipe(switchMap(data => {
|
||||||
console.log(data.serviceType);
|
|
||||||
this.serviceType = data.serviceType;
|
this.serviceType = data.serviceType;
|
||||||
switch (this.serviceType) {
|
switch (this.serviceType) {
|
||||||
case PolicyComponentServiceType.MGMT:
|
case PolicyComponentServiceType.MGMT:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user