fix: IDP login button styles (#869)

* fix: styling type on idp

* fix: google styling

* fix: google styling

* fix: google styling

* fix: remove logo src from angular

* fix: pr requests

* fix drop column migration

* fix: drop column migration

* fix: grant id
This commit is contained in:
Fabi
2020-10-19 17:10:02 +02:00
committed by GitHub
parent bb9747923c
commit 4eb380a825
43 changed files with 19230 additions and 10514 deletions

View File

@@ -47,7 +47,6 @@ export class IdpCreateComponent implements OnInit, OnDestroy {
) {
this.formGroup = new FormGroup({
name: new FormControl('', [Validators.required]),
logoSrc: new FormControl('', []),
clientId: new FormControl('', [Validators.required]),
clientSecret: new FormControl('', [Validators.required]),
issuer: new FormControl('', [Validators.required]),
@@ -103,7 +102,6 @@ export class IdpCreateComponent implements OnInit, OnDestroy {
req.setClientId(this.clientId?.value);
req.setClientSecret(this.clientSecret?.value);
req.setIssuer(this.issuer?.value);
req.setLogoSrc(this.logoSrc?.value);
req.setScopesList(this.scopesList?.value);
req.setIdpDisplayNameMapping(this.idpDisplayNameMapping?.value);
req.setUsernameMapping(this.usernameMapping?.value);
@@ -153,10 +151,6 @@ export class IdpCreateComponent implements OnInit, OnDestroy {
return this.formGroup.get('name');
}
public get logoSrc(): AbstractControl | null {
return this.formGroup.get('logoSrc');
}
public get clientId(): AbstractControl | null {
return this.formGroup.get('clientId');
}

View File

@@ -32,8 +32,6 @@
<mat-checkbox color="primary" (click)="$event.stopPropagation()"
[disabled]="serviceType==PolicyComponentServiceType.MGMT && idp?.providerType == IdpProviderType.IDPPROVIDERTYPE_SYSTEM"
(change)="$event ? selection.toggle(idp) : null" [checked]="selection.isSelected(idp)">
<img *ngIf="idp?.logoSrc?.startsWith('https://'); else genAvatar" [src]="idp.logoSrc"
alt="ipp logo {{idp?.name}}" />
<ng-template #genAvatar>
<div class="avatar">
<span>{{idp.name.charAt(0)}}</span>
@@ -103,4 +101,4 @@
</div>
<mat-paginator #paginator class="paginator" [length]="idpResult?.totalResult || 0" [pageSize]="10"
[pageSizeOptions]="[5, 10, 20]" (page)="changePage($event)"></mat-paginator>
</app-refresh-table>
</app-refresh-table>

View File

@@ -12,10 +12,6 @@
<mat-label>{{ 'IDP.NAME' | translate }}</mat-label>
<input matInput formControlName="name" />
</mat-form-field>
<!--<mat-form-field appearance="outline" class="formfield">
<mat-label>{{ 'IDP.LOGOSRC' | translate }}</mat-label>
<input matInput formControlName="logoSrc" />
</mat-form-field>-->
</div>
</ng-container>
@@ -92,4 +88,4 @@
</ng-container>
</div>
</app-detail-layout>
</app-detail-layout>

View File

@@ -50,7 +50,6 @@ export class IdpComponent implements OnInit, OnDestroy {
this.idpForm = new FormGroup({
id: new FormControl({ disabled: true, value: '' }, [Validators.required]),
name: new FormControl('', [Validators.required]),
logoSrc: new FormControl({ disabled: true, value: '' }, [Validators.required]),
});
this.oidcConfigForm = new FormGroup({
@@ -121,7 +120,6 @@ export class IdpComponent implements OnInit, OnDestroy {
req.setId(this.id?.value);
req.setName(this.name?.value);
req.setLogoSrc(this.logoSrc?.value);
this.service.UpdateIdp(req).then((idp) => {
this.toast.showInfo('IDP.TOAST.SAVED', true);
@@ -206,10 +204,6 @@ export class IdpComponent implements OnInit, OnDestroy {
return this.idpForm.get('name');
}
public get logoSrc(): AbstractControl | null {
return this.idpForm.get('logoSrc');
}
public get clientId(): AbstractControl | null {
return this.oidcConfigForm.get('clientId');
}

View File

@@ -718,7 +718,6 @@
"NAME":"Name",
"CONFIG":"Konfiguration",
"STATE":"Status",
"LOGOSRC":"Logo Src",
"ISSUER":"Issuer",
"SCOPESLIST":"Scopes List",
"CLIENTID":"Client ID",

View File

@@ -718,7 +718,6 @@
"NAME":"Name",
"CONFIG":"Configuration",
"STATE":"State",
"LOGOSRC":"Logo Src",
"ISSUER":"Issuer",
"SCOPESLIST":"Scopes List",
"CLIENTID":"Client ID",