mirror of https://github.com/rancher/ui.git
tweak secrets
This commit is contained in:
parent
8b2bda1ae0
commit
970b2738ce
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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}}
|
||||
|
|
|
|||
|
|
@ -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}}
|
||||
|
|
|
|||
|
|
@ -3130,7 +3130,7 @@ formSecrets:
|
|||
secret:
|
||||
label: Secret
|
||||
prefixOrKey:
|
||||
label: Prefix or Key
|
||||
label: Key in Secret
|
||||
prefix:
|
||||
label: Prefix or Alias
|
||||
uid:
|
||||
|
|
|
|||
Loading…
Reference in New Issue