Skip to content
This repository was archived by the owner on Aug 1, 2021. It is now read-only.

Commit 406df33

Browse files
committed
bug - secret from api
1 parent d05ca61 commit 406df33

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/Frontend/Jp.AdminUI/src/app/panel/api-resources/secrets/api-secrets.component.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ <h3>{{ resourceName }}</h3>
2828
<tr>
2929
<th></th>
3030
<th>{{ 'secrets.secretValue' | translate }}</th>
31+
<th>{{ 'secrets.secretType' | translate }}</th>
3132
<th>{{ 'secrets.expiration' | translate }}</th>
3233
<th>{{ 'secrets.description' | translate }}</th>
3334
</tr>
@@ -36,6 +37,7 @@ <h3>{{ resourceName }}</h3>
3637
<tr *ngFor="let secret of apiSecrets">
3738
<td><button class="btn btn-danger btn-xs" (click)="remove(secret.id)"><i class="fa fa-times"></i></button></td>
3839
<td>{{secret.value}}</td>
40+
<th>{{ secret.type }}</th>
3941
<td>{{secret.expiration}}</td>
4042
<td>{{secret.description}}</td>
4143
</tr>

src/Frontend/Jp.AdminUI/src/app/panel/api-resources/secrets/api-secrets.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export class ApiResourceSecretsComponent implements OnInit {
3030
public showButtonLoading: boolean;
3131
public resourceName: string;
3232
public hashTypes: { id: number; text: string; }[];
33-
public secretTypes: { id: number; text: string; }[];
33+
public secretTypes: { id: string; text: string; }[];
3434
public bsConfig = {
3535
containerClass: 'theme-angle'
3636
};
@@ -48,7 +48,7 @@ export class ApiResourceSecretsComponent implements OnInit {
4848
this.model = new ApiResourceSecret();
4949
this.showButtonLoading = false;
5050
this.hashTypes = [{ id: 0, text: "Sha256" }, { id: 1, text: "Sha512" }];
51-
this.secretTypes = [{ id: 0, text: "SharedSecret" }, { id: 1, text: "X509Thumbprint" }, { id: 2, text: "X509Name" }, { id: 3, text: "X509CertificateBase64" }];
51+
this.secretTypes = [{ id: 'SharedSecret', text: "Shared Secret" }, { id: "X509Thumbprint", text: "X509 Thumbprint" }, { id: "X509Name", text: "X509 Name" }, { id: "X509CertificateBase64", text: "X509 Certificate Base64" }];
5252
}
5353

5454
public showSuccessMessage() {

0 commit comments

Comments
 (0)