fix: i18n refs, unnecessary logs (#1343)

This commit is contained in:
Max Peintner 2021-02-25 11:55:21 +01:00 committed by GitHub
parent 40a7e958d7
commit 2e04c977eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 9 additions and 5 deletions

View File

@ -70,7 +70,8 @@
</button>
</div>
</div>
<div class="environment" *ngFor="let environmentV of (environmentMap | keyvalue)">
<ng-container *ngFor="let environmentV of (environmentMap | keyvalue)">
<div *ngIf="environmentV.value" class="environment">
<span class="key">{{environmentV.key}}</span>
<div class="environment-row">
<span>{{environmentV.value}}</span>
@ -83,6 +84,7 @@
</button>
</div>
</div>
</ng-container>
</div>
<div class="compliance"

View File

@ -12,7 +12,7 @@
<div [routerLink]="['/projects', projectId, 'apps', app.id ]" class="app-wrap"
*ngFor="let app of appsSubject | async"
matTooltip="{{'APP.APPTYPE.'+app?.oidcConfig?.applicationType | translate}}">
matTooltip="{{'ACTIONS.EDIT' | translate}}">
<cnsl-app-card class="grid-card" matRipple [type]="app.oidcConfig?.applicationType"
[isApiApp]="app.apiConfig !== undefined">
{{ app.name.charAt(0)}}

View File

@ -38,7 +38,6 @@ export class ApplicationGridComponent implements OnInit {
finalize(() => this.loadingSubject.next(false)),
).subscribe((apps) => {
this.appsSubject.next(apps as Application.AsObject[]);
console.log(apps);
});
}

View File

@ -30,7 +30,6 @@ export class ProjectApplicationsDataSource extends DataSource<Application.AsObje
map(resp => {
const response = resp.toObject();
this.totalResult = response.totalResult;
console.log(response.resultList);
if (response.viewTimestamp) {
this.viewTimestamp = response.viewTimestamp;
}

View File

@ -34,7 +34,11 @@
<th mat-header-cell *matHeaderCellDef> {{ 'APP.TYPE' | translate }} </th>
<td class="pointer" [routerLink]="['/projects', projectId, 'apps', app.id ]" mat-cell
*matCellDef="let app">
{{'APP.APPTYPE.'+app?.oidcConfig?.applicationType | translate}} </td>
<span *ngIf="app?.oidcConfig?.applicationType !== undefined && app?.oidcConfig?.applicationType !== null">
{{'APP.OIDC.APPTYPE.'+app?.oidcConfig?.applicationType | translate}}
</span>
<span *ngIf="app.apiConfig">API</span>
</td>
</ng-container>
<tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>