From 23167a0bb3d1d1651f52dbc7a6be1300bb2429f4 Mon Sep 17 00:00:00 2001 From: utkarshcmu Date: Fri, 12 Feb 2016 07:34:56 -0800 Subject: [PATCH 1/2] Viewers restricted to edit panel --- public/app/core/controllers/json_editor_ctrl.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/app/core/controllers/json_editor_ctrl.js b/public/app/core/controllers/json_editor_ctrl.js index f83a2ac3e8c..7d7d56fa96b 100644 --- a/public/app/core/controllers/json_editor_ctrl.js +++ b/public/app/core/controllers/json_editor_ctrl.js @@ -8,7 +8,7 @@ function (angular, coreModule) { coreModule.default.controller('JsonEditorCtrl', function($scope) { $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 () { var newObject = angular.fromJson($scope.json); From 92f4442356418f4578655e706fea6c73c0aa145a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Sun, 14 Feb 2016 10:39:20 +0100 Subject: [PATCH 2/2] fix(influxdb): fixed annotations editor, broken recently in master due to plugin changes, fixes #4023 --- .../datasource/influxdb/partials/annotations.editor.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/public/app/plugins/datasource/influxdb/partials/annotations.editor.html b/public/app/plugins/datasource/influxdb/partials/annotations.editor.html index 6d71ec3211a..03ef1df0b52 100644 --- a/public/app/plugins/datasource/influxdb/partials/annotations.editor.html +++ b/public/app/plugins/datasource/influxdb/partials/annotations.editor.html @@ -2,7 +2,7 @@
InfluxDB Query Example: select text from events where $timeFilter
- +
@@ -12,17 +12,17 @@
Column mappings 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.
- +
- +
- +