fix function editor in Grafana 6, #765

This commit is contained in:
Alexander Zobnin
2019-07-05 17:42:46 +03:00
parent 6b5b5f818b
commit 4346e13365
10 changed files with 667 additions and 251 deletions

View File

@@ -275,6 +275,12 @@ export class ZabbixQueryController extends QueryCtrl {
this.targetChanged();
}
moveFunction(func, offset) {
const index = this.target.functions.indexOf(func);
_.move(this.target.functions, index, index + offset);
this.targetChanged();
}
moveAliasFuncLast() {
var aliasFunc = _.find(this.target.functions, function(func) {
return func.def.name === 'alias' ||