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() { 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 selectedSecret = get(this, 'secret.sourceName');
let out = [prefix]; let out = [prefix];
if (selectedSecret) { if (selectedSecret) {

View File

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

View File

@ -6,10 +6,6 @@
expandAll=expandAll expandAll=expandAll
expand=(action expandFn) 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"> <div class="clearfix pt-20">
{{#if secrets.length}} {{#if secrets.length}}
<table class="table fixed no-lines small mb-10"> <table class="table fixed no-lines small mb-10">
@ -38,5 +34,9 @@
<span class="text-center text-muted">{{t 'formSecrets.noSecrets'}}</span> <span class="text-center text-muted">{{t 'formSecrets.noSecrets'}}</span>
{{/unless}} {{/unless}}
{{/if}} {{/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> </div>
{{/accordion-list-item}} {{/accordion-list-item}}

View File

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