mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Made tags editable in opentsdb query
This commit is contained in:
parent
3a66d7c453
commit
8a184e9d30
@ -118,8 +118,11 @@
|
|||||||
Tags
|
Tags
|
||||||
</li>
|
</li>
|
||||||
<li ng-repeat="(key, value) in target.tags track by $index" class="tight-form-item">
|
<li ng-repeat="(key, value) in target.tags track by $index" class="tight-form-item">
|
||||||
{{key}} = {{value}}
|
{{key}} = {{value}}
|
||||||
<a ng-click="removeTag(key)">
|
<a ng-click="editTag(key, value)">
|
||||||
|
<i class="fa fa-pencil"></i>
|
||||||
|
</a>
|
||||||
|
<a ng-click="removeTag(key)">
|
||||||
<i class="fa fa-remove"></i>
|
<i class="fa fa-remove"></i>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
@ -86,6 +86,13 @@ function (angular, _, kbn) {
|
|||||||
$scope.targetBlur();
|
$scope.targetBlur();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
$scope.editTag = function(key, value) {
|
||||||
|
$scope.removeTag(key);
|
||||||
|
$scope.target.currentTagKey = key;
|
||||||
|
$scope.target.currentTagValue = value;
|
||||||
|
$scope.addTag();
|
||||||
|
};
|
||||||
|
|
||||||
function validateTarget(target) {
|
function validateTarget(target) {
|
||||||
var errs = {};
|
var errs = {};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user