Commit ab93a051 authored by Lukas Burgey's avatar Lukas Burgey

Add minor tweaks to the credential dialogue

parent 38964bf1
<div *ngIf="(stateItem$ | async) as stateItem" class="mat-typography">
<h2>Credentials</h2>
<p>
For access to the service {{ stateItem.service?.name }} at {{ stateItem.service?.site?.name }} additional credentials are needed.
The additional credentials are listed below.
</p>
<div *ngIf="credentialCount > 0" style="margin-bottom: 50px;">
<h2>Credentials</h2>
<p>
For access to the service {{ stateItem.service.name }} at {{ stateItem.service.site.name }} additional credentials are needed.
The additional credentials are listed below.
</p>
<mat-table [dataSource]="table">
<ng-container matColumnDef="name">
<mat-header-cell *matHeaderCellDef>Name</mat-header-cell>
......
......@@ -16,7 +16,6 @@ export class CredentialsComponent implements OnInit {
public columns = ["name", "value"];
public stateItem$: Observable<DeploymentState>;
public service: Service;
public credentialCount: number = 0;
public table: MatTableDataSource<any>;
......@@ -34,8 +33,6 @@ export class CredentialsComponent implements OnInit {
if (this.stateItem$) {
this.stateItem$.subscribe(
(stateItem: DeploymentState) => {
this.service = stateItem.service;
const credentialList = [];
for (const key in stateItem.credentials) {
if (stateItem.credentials.hasOwnProperty(key)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment