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() {
|
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) {
|
||||||
|
|
|
||||||
|
|
@ -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}}
|
||||||
|
|
|
||||||
|
|
@ -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}}
|
||||||
|
|
|
||||||
|
|
@ -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:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue