Mercurial > hg > thermostat-ng > web-client
changeset 228:4d79a8984071
Do not clear Byteman rules editor
Reviewed-by: jkang
Review-thread: http://icedtea.classpath.org/pipermail/thermostat/2017-September/025218.html
author | Andrew Azores <aazores@redhat.com> |
---|---|
date | Thu, 28 Sep 2017 10:06:37 -0400 |
parents | ca1ab4a5dc73 |
children | 1887aaa6d7a5 |
files | src/app/components/jvm-info/byteman/rules/byteman-rules.controller.js src/app/components/jvm-info/byteman/rules/byteman-rules.controller.spec.js |
diffstat | 2 files changed, 0 insertions(+), 13 deletions(-) [+] |
line wrap: on
line diff
--- 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(); }
--- 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();