# HG changeset patch # User Andrew Azores # Date 1506607597 14400 # Node ID 4d79a8984071e9e886e30099b3b1ce0db001099c # Parent ca1ab4a5dc732c77b1b18bec4a3f292900ed97cf Do not clear Byteman rules editor Reviewed-by: jkang Review-thread: http://icedtea.classpath.org/pipermail/thermostat/2017-September/025218.html diff -r ca1ab4a5dc73 -r 4d79a8984071 src/app/components/jvm-info/byteman/rules/byteman-rules.controller.js --- a/src/app/components/jvm-info/byteman/rules/byteman-rules.controller.js Wed Sep 27 17:19:32 2017 -0400 +++ b/src/app/components/jvm-info/byteman/rules/byteman-rules.controller.js Thu Sep 28 10:06:37 2017 -0400 @@ -49,14 +49,9 @@ return this._svc.getLoadedRules(this.jvmId) .then(res => { this.loadedRule = res; - this._clearInput(); }); } - _clearInput () { - this.ruleText = ''; - } - refresh () { return this._updateRules(); } diff -r ca1ab4a5dc73 -r 4d79a8984071 src/app/components/jvm-info/byteman/rules/byteman-rules.controller.spec.js --- a/src/app/components/jvm-info/byteman/rules/byteman-rules.controller.spec.js Wed Sep 27 17:19:32 2017 -0400 +++ b/src/app/components/jvm-info/byteman/rules/byteman-rules.controller.spec.js Thu Sep 28 10:06:37 2017 -0400 @@ -74,14 +74,6 @@ }); }); - describe('_clearInput ()', () => { - it('should reset ruleText property to the empty string', () => { - ctrl.ruleText = 'foo'; - ctrl._clearInput(); - ctrl.ruleText.should.equal(''); - }); - }); - describe('refresh ()', () => { it('should load injected rules', () => { svc.getLoadedRules.should.not.be.called();