fix: Use name in connect header -Remove credential purpose UI

This commit is contained in:
Susmitha Girumala committed 2021-06-28 12:50:39 -04:00
1 parent 559764a5c1
commit e8e83d979b
3 files changed
+4 -13

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,
@@ -41,7 +41,10 @@
<Card
@heading={{concat
(t 'resources.session.credential.title')
(if credential.purpose (concat ' (' credential.purpose ')'))
(if
credential.library.name
(concat ' (' credential.library.name ')')
)
}}
@icon='app-icons/credential'
>
@@ -71,12 +74,6 @@
<:key>{{t 'form.type.label'}}</:key>
<:value>{{credential.library.type}}</:value>
</dropdown.key-value>
{{#if credential.library.name}}
<dropdown.key-value>
<:key>{{t 'form.name.label'}}</:key>
<:value>{{credential.library.name}}</:value>
</dropdown.key-value>
{{/if}}
{{#if credential.library.description}}
<dropdown.key-value>
<:key>{{t 'form.description.label'}}</:key>