Commit b77bce19 by Torkel Ödegaard

Merge branch 'master' of github.com:grafana/grafana into style-changes-bulletfactory

parents fa06040e afa4ee9a
...@@ -8,7 +8,7 @@ function (angular, coreModule) { ...@@ -8,7 +8,7 @@ function (angular, coreModule) {
coreModule.default.controller('JsonEditorCtrl', function($scope) { coreModule.default.controller('JsonEditorCtrl', function($scope) {
$scope.json = angular.toJson($scope.object, true); $scope.json = angular.toJson($scope.object, true);
$scope.canUpdate = $scope.updateHandler !== void 0; $scope.canUpdate = $scope.updateHandler !== void 0 && $scope.contextSrv.isEditor;
$scope.update = function () { $scope.update = function () {
var newObject = angular.fromJson($scope.json); var newObject = angular.fromJson($scope.json);
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<div class="section"> <div class="section">
<h5>InfluxDB Query <tip>Example: select text from events where $timeFilter</tip></h5> <h5>InfluxDB Query <tip>Example: select text from events where $timeFilter</tip></h5>
<div class="editor-option"> <div class="editor-option">
<input type="text" class="span10" ng-model='annotation.query' placeholder="select text from events where $timeFilter"></input> <input type="text" class="span10" ng-model='ctrl.annotation.query' placeholder="select text from events where $timeFilter"></input>
</div> </div>
</div> </div>
</div> </div>
...@@ -12,17 +12,17 @@ ...@@ -12,17 +12,17 @@
<h5>Column mappings <tip>If your influxdb query returns more than one column you need to specify the column names below. An annotation event is composed of a title, tags, and an additional text field.</tip></h5> <h5>Column mappings <tip>If your influxdb query returns more than one column you need to specify the column names below. An annotation event is composed of a title, tags, and an additional text field.</tip></h5>
<div class="editor-option"> <div class="editor-option">
<label class="small">Title</label> <label class="small">Title</label>
<input type="text" class="input-small" ng-model='annotation.titleColumn' placeholder=""></input> <input type="text" class="input-small" ng-model='ctrl.annotation.titleColumn' placeholder=""></input>
</div> </div>
<div class="editor-option"> <div class="editor-option">
<label class="small">Tags</label> <label class="small">Tags</label>
<input type="text" class="input-small" ng-model='annotation.tagsColumn' placeholder=""></input> <input type="text" class="input-small" ng-model='ctrl.annotation.tagsColumn' placeholder=""></input>
</div> </div>
<div class="editor-option"> <div class="editor-option">
<label class="small">Text</label> <label class="small">Text</label>
<input type="text" class="input-small" ng-model='annotation.textColumn' placeholder=""></input> <input type="text" class="input-small" ng-model='ctrl.annotation.textColumn' placeholder=""></input>
</div> </div>
</div> </div>
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment