tweak secrets

This commit is contained in:
Westly Wright 2018-03-20 13:44:59 -07:00
parent 8b2bda1ae0
commit 970b2738ce
No known key found for this signature in database
GPG Key ID: 4FAB3D8673DC54A3
4 changed files with 7 additions and 7 deletions

View File

@ -57,7 +57,7 @@ export default Component.extend({
},
}),
prefixOrKeys: computed('allSecrets.[]', 'secret.sourceName', function() {
let prefix = { id: 'prefix', label: 'Prefix'};
let prefix = { id: 'prefix', label: 'All'};
let selectedSecret = get(this, 'secret.sourceName');
let out = [prefix];
if (selectedSecret) {

View File

@ -30,7 +30,7 @@
<td data-title="{{t 'formSecrets.prefix.label'}}">
<div class="row">
<div class="col span-2">
<div class="col span-2 p-10" style="min-width:60px;">
{{#if (eq sourceKey 'prefix')}}
{{sourceKey}}
{{else}}

View File

@ -6,10 +6,6 @@
expandAll=expandAll
expand=(action expandFn)
}}
<button type="button" class="btn bg-link icon-btn" {{action "addSecret"}}>
<span class="darken"><i class="icon icon-plus icon-small"></i></span>
<span>{{t 'formSecrets.addLabel'}}</span>
</button>
<div class="clearfix pt-20">
{{#if secrets.length}}
<table class="table fixed no-lines small mb-10">
@ -38,5 +34,9 @@
<span class="text-center text-muted">{{t 'formSecrets.noSecrets'}}</span>
{{/unless}}
{{/if}}
<button type="button" class="btn bg-link icon-btn" {{action "addSecret"}}>
<span class="darken"><i class="icon icon-plus icon-small"></i></span>
<span>{{t 'formSecrets.addLabel'}}</span>
</button>
</div>
{{/accordion-list-item}}

View File

@ -3130,7 +3130,7 @@ formSecrets:
secret:
label: Secret
prefixOrKey:
label: Prefix or Key
label: Key in Secret
prefix:
label: Prefix or Alias
uid: