fix(console): idp write access (#2258)

* fix: idp

* disable idp form in detail

* lint

* change list idp request

* fix external idp removal
This commit is contained in:
Max Peintner
2021-08-26 08:15:00 +02:00
committed by GitHub
parent 34002ec834
commit cd629a5d1c
12 changed files with 179 additions and 138 deletions
@@ -86,16 +86,15 @@
<td mat-cell *matCellDef="let idp">
<button
[disabled]="serviceType==PolicyComponentServiceType.MGMT && idp?.providerType == IDPOwnerType.IDP_OWNER_TYPE_ORG"
mat-icon-button color="warn" matTooltip="{{'IAM.VIEWS.DELETE' | translate}}"
mat-icon-button color="warn" matTooltip="{{'ACTIONS.REMOVE' | translate}}"
(click)="removeIdp(idp)">
<i class="las la-trash"></i>
<mat-icon>remove_circle</mat-icon>
</button>
</td>
</ng-container>
<tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>
<tr class="highlight"
[ngClass]="{'disabled': serviceType==PolicyComponentServiceType.MGMT && row?.providerType == IDPOwnerType.IDP_OWNER_TYPE_SYSTEM}"
mat-row *matRowDef="let row; columns: displayedColumns;">
</tr>
</table>
@@ -40,10 +40,6 @@ td {
tr {
outline: none;
&.disabled * {
opacity: .8;
}
button {
visibility: hidden;
}
@@ -53,6 +49,12 @@ tr {
visibility: visible;
}
}
&.disabled,
&.disabled * {
opacity: .8;
cursor: default;
}
}
.avatar {