Ui/wrap tool ttl (#9691)

* Update ttl picker in wrap tool
This commit is contained in:
Chelsea Shaw
2020-08-10 13:17:54 -05:00
committed by GitHub
parent 1a39e1f2b1
commit 111515b140
2 changed files with 13 additions and 1 deletions

View File

@@ -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;