Merge pull request #624 from hashicorp/connect-dialog-display-name-in-header

fix: Use name in connect header
This commit is contained in:
Susmitha Girumala authored and GitHub committed 2021-06-28 15:19:12 -04:00
commit 7d70493a66
3 files changed
+5 -10

No files matched your search

-2
View File
@@ -44,7 +44,6 @@ class SessionCredential {
// =attributes
rawCredential;
library;
purpose;
#rawSecretValue;
/**
@@ -69,7 +68,6 @@ class SessionCredential {
this.library = new SessionCredential.Library(id, name, description, type);
this.#rawSecretValue = cred.secret;
this.rawCredential = cred;
this.purpose = cred.purpose;
}
}
-4
View File
@@ -67,7 +67,6 @@ export default function initializeMockIPC(server) {
credential_store_id: 'csvlt_Q1HFGt7Jpm',
type: 'vault',
},
purpose: 'application',
secret: 'just-a-random-string',
},
{
@@ -78,7 +77,6 @@ export default function initializeMockIPC(server) {
credential_store_id: 'csvlt_Q1HFGt7Jpm',
type: 'vault',
},
purpose: 'ingress',
secret: {
key1: 'value 1',
key2: true,
@@ -93,7 +91,6 @@ export default function initializeMockIPC(server) {
credential_store_id: 'csvlt_Q1HFGt7Jpm',
type: 'vault',
},
purpose: 'application',
secret: 'just-a-random-string',
},
{
@@ -104,7 +101,6 @@ export default function initializeMockIPC(server) {
credential_store_id: 'csvlt_Q1HFGt7Jpm',
type: 'vault',
},
purpose: 'egress',
secret: {
key1: 'value 1',
key2: true,
@@ -39,10 +39,11 @@
{{#each session.credentials as |credential|}}
<Card
@heading={{concat
(t 'resources.session.credential.title')
(if credential.purpose (concat ' (' credential.purpose ')'))
}}
@heading='{{t 'resources.session.credential.title'}}
{{if
credential.library.name
(concat ' (' credential.library.name ')')
}}'
@icon='app-icons/credential'
>
<:header>