diff --git a/src/app/directives/tip.js b/src/app/directives/tip.js
index a0aac161bb2..fa234e8b8bc 100644
--- a/src/app/directives/tip.js
+++ b/src/app/directives/tip.js
@@ -55,4 +55,24 @@ function (angular, kbn) {
};
});
+ angular
+ .module('grafana.directives')
+ .directive('editorCheckbox', function($compile) {
+ return {
+ restrict: 'E',
+ link: function(scope, elem, attrs) {
+ var ngchange = attrs.change ? (' ng-change="' + attrs.change + '"') : '';
+ var tip = attrs.tip ? (' ' + attrs.tip + '') : '';
+
+ var template = '' +
+ '' +
+ ' ';
+ elem.replaceWith($compile(angular.element(template))(scope));
+ }
+ };
+ });
+
});
diff --git a/src/app/plugins/datasource/opentsdb/partials/query.editor.html b/src/app/plugins/datasource/opentsdb/partials/query.editor.html
index b732d999719..79dd6cd5ffd 100644
--- a/src/app/plugins/datasource/opentsdb/partials/query.editor.html
+++ b/src/app/plugins/datasource/opentsdb/partials/query.editor.html
@@ -131,10 +131,7 @@
- Disable downsampling
-
-
+
@@ -198,17 +195,11 @@
- Rate
-
-
+
- Counter
-
-
+
diff --git a/src/css/less/tightform.less b/src/css/less/tightform.less
index 387420b6c49..6f83c7c5466 100644
--- a/src/css/less/tightform.less
+++ b/src/css/less/tightform.less
@@ -17,6 +17,12 @@
background: transparent;
border: none;
}
+
+ .checkbox-label {
+ display: inline;
+ padding-right: 4px;
+ margin-bottom: 0;
+ }
}
.spaced-form {