From bf38ce47014c29c8e2dc8108e90f1c800ba0b903 Mon Sep 17 00:00:00 2001 From: Chelsea Shaw Date: Mon, 10 Aug 2020 13:17:54 -0500 Subject: [PATCH] Ui/wrap tool ttl (#9691) * Update ttl picker in wrap tool --- ui/app/components/tool-actions-form.js | 5 +++++ ui/app/templates/partials/tools/wrap.hbs | 9 ++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/ui/app/components/tool-actions-form.js b/ui/app/components/tool-actions-form.js index 2878fc0c0..b9a96e60b 100644 --- a/ui/app/components/tool-actions-form.js +++ b/ui/app/components/tool-actions-form.js @@ -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; diff --git a/ui/app/templates/partials/tools/wrap.hbs b/ui/app/templates/partials/tools/wrap.hbs index 5301927ec..02d2b7c5a 100644 --- a/ui/app/templates/partials/tools/wrap.hbs +++ b/ui/app/templates/partials/tools/wrap.hbs @@ -52,7 +52,14 @@ }} - {{ttl-picker labelText='Wrap TTL' onChange=(action (mut wrapTTL))}} +