parent
4bf0ce85e0
commit
bf38ce4701
|
@ -137,6 +137,11 @@ export default Component.extend(DEFAULTS, {
|
|||
this.reset();
|
||||
},
|
||||
|
||||
updateTtl(evt) {
|
||||
const ttl = evt.enabled ? `${evt.seconds}s` : '30m';
|
||||
set(this, 'wrapTTL', ttl);
|
||||
},
|
||||
|
||||
codemirrorUpdated(val, codemirror) {
|
||||
codemirror.performLint();
|
||||
const hasErrors = codemirror.state.lint.marked.length > 0;
|
||||
|
|
|
@ -52,7 +52,14 @@
|
|||
}}
|
||||
</div>
|
||||
</div>
|
||||
{{ttl-picker labelText='Wrap TTL' onChange=(action (mut wrapTTL))}}
|
||||
<TtlPicker2
|
||||
@label="Wrap TTL"
|
||||
@initialValue="30m"
|
||||
@onChange={{action 'updateTtl'}}
|
||||
@helperTextDisabled="Vault will use the default (30m)"
|
||||
@helperTextEnabled="Wrap will expire after"
|
||||
@changeOnInit={{true}}
|
||||
/>
|
||||
</div>
|
||||
<div class="field is-grouped box is-fullwidth is-bottomless">
|
||||
<div class="control">
|
||||
|
|
Loading…
Reference in New Issue