fix: 🐛 Conditionally show credential library name and desc

This commit is contained in:
Susmitha Girumala committed 2021-06-25 10:12:56 -04:00
1 parent a535991174
commit aea193c78d
3 files changed
+21 -12

No files matched your search

@@ -152,8 +152,9 @@ session:
title_plural: Credentials
secret:
label: Secret
credential_library:
title: Credential Library
actions:
detail: Credential library details
raw-api:
show: View raw API output
hide: Hide raw API output
@@ -1,5 +1,3 @@
{{! template-lint-disable no-bare-strings }}
{{page-title (t 'resources.target.title_plural')}}
{{#each @model as |target|}}
@@ -51,7 +49,9 @@
>
<:header>
<Rose::Dropdown
@text={{t 'resources.session.credential.actions.detail'}}
@text={{t
'resources.session.credential.credential_library.title'
}}
@style='condensed'
@dropdownRight={{true}}
@ignoreClickInside={{true}}
@@ -73,14 +73,18 @@
<:key>{{t 'form.type.label'}}</:key>
<:value>{{credential.library.type}}</:value>
</dropdown.key-value>
<dropdown.key-value>
<:key>{{t 'form.name.label'}}</:key>
<:value>{{credential.library.name}}</:value>
</dropdown.key-value>
<dropdown.key-value>
<:key>{{t 'form.description.label'}}</:key>
<:value>{{credential.library.description}}</: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>
<:value>{{credential.library.description}}</:value>
</dropdown.key-value>
{{/if}}
</Rose::Dropdown>
</:header>
<:body>
+4
View File
@@ -48,6 +48,10 @@ const extract = (artifactPath, destination) => {
module.exports = {
setup: async () => {
if (process.env.BYPASS_CLI_SETUP) {
console.warn('WARNING: Bypassing cli setup');
return;
}
const artifactPath = await downloadArtifact(artifactVersion);
await extract(artifactPath, artifactDestination);
}