query-editor: refresh panel when editor mode changed

This commit is contained in:
Alexander Zobnin
2017-07-25 17:30:36 +03:00
parent 859556c08e
commit 6b4ace6b54
4 changed files with 4 additions and 1 deletions

View File

@@ -364,6 +364,7 @@ System.register(['app/plugins/sdk', 'lodash', './constants', './utils', './metri
value: function switchEditorMode(mode) { value: function switchEditorMode(mode) {
this.target.mode = mode; this.target.mode = mode;
this.init(); this.init();
this.targetChanged();
} }
}]); }]);

File diff suppressed because one or more lines are too long

View File

@@ -358,6 +358,7 @@ var ZabbixQueryController = exports.ZabbixQueryController = function (_QueryCtrl
value: function switchEditorMode(mode) { value: function switchEditorMode(mode) {
this.target.mode = mode; this.target.mode = mode;
this.init(); this.init();
this.targetChanged();
} }
}]); }]);

View File

@@ -293,6 +293,7 @@ export class ZabbixQueryController extends QueryCtrl {
switchEditorMode(mode) { switchEditorMode(mode) {
this.target.mode = mode; this.target.mode = mode;
this.init(); this.init();
this.targetChanged();
} }
} }