Jelajahi Sumber

Merge branch 'master' into panel_edit_menu_poc

Torkel Ödegaard 11 tahun lalu
induk
melakukan
139791b0d8

+ 3 - 1
CHANGELOG.md

@@ -1,4 +1,6 @@
-# 1.8.0 (unreleased)
+# 1.8.0 (2014-09-22)
+
+Read this [blog post](http://grafana.org/blog/2014/09/11/grafana-1-8-0-rc1-released.html) for an overview of all improvements.
 
 **Fixes**
 - [Issue #802](https://github.com/grafana/grafana/issues/802). Annotations: Fix when using InfluxDB datasource

+ 2 - 2
latest.json

@@ -1,4 +1,4 @@
 {
-	"version": "1.8.0-rc1",
-	"url": "http://grafanarel.s3.amazonaws.com/grafana-1.8.0-rc1"
+	"version": "1.8.0",
+	"url": "http://grafanarel.s3.amazonaws.com/grafana-1.8.0.tar.gz"
 }

+ 1 - 1
package.json

@@ -4,7 +4,7 @@
     "company": "Coding Instinct AB"
   },
   "name": "grafana",
-  "version": "1.8.0-rc1",
+  "version": "1.8.0",
   "repository": {
     "type": "git",
     "url": "http://github.com/torkelo/grafana.git"

+ 5 - 2
src/app/directives/dashEditLink.js

@@ -51,9 +51,12 @@ function (angular, $) {
           scope.onAppEvent('hide-dash-editor', hideEditorPane);
 
           scope.onAppEvent('show-dash-editor', function(evt, payload) {
-            hideEditorPane();
+            if (lastEditor === payload.src) {
+              hideEditorPane();
+              return;
+            }
 
-            if (lastEditor === payload.src) { return; }
+            hideEditorPane();
 
             scope.exitFullscreen();
 

+ 1 - 1
src/app/panels/graph/legend.html

@@ -5,7 +5,7 @@
        ng-class="{'pull-right': series.yaxis === 2, 'graph-legend-series-hidden': hiddenSeries[series.alias]}"
        >
     <div class="graph-legend-icon">
-      <i class='icon-minus pointer' ng-style="{color: series.color}" bs-popover="'colorPopup.html'">
+      <i class='icon-minus pointer' ng-style="{color: series.color}" bs-popover="'colorPopup.html'" data-placement="bottom">
       </i>
     </div>
     <div class="graph-legend-alias small">

+ 1 - 1
src/app/services/dashboard/dashboardSrv.js

@@ -25,7 +25,7 @@ function (angular, $, kbn, _, moment) {
       this.tags = data.tags || [];
       this.style = data.style || "dark";
       this.timezone = data.timezone || 'browser';
-      this.editable = data.editable || true;
+      this.editable = data.editable === false ? false : true;
       this.hideControls = data.hideControls || false;
       this.rows = data.rows || [];
       this.nav = data.nav || [];

+ 16 - 0
src/test/specs/dashboardSrv-specs.js

@@ -82,6 +82,22 @@ define([
 
   });
 
+  describe('when creating dashboard with editable false', function() {
+    var model;
+
+    beforeEach(module('grafana.services'));
+    beforeEach(inject(function(dashboardSrv) {
+      model = dashboardSrv.create({
+        editable: false
+      });
+    }));
+
+    it('should set editable false', function() {
+      expect(model.editable).to.be(false);
+    });
+
+  });
+
   describe('when creating dashboard with old schema', function() {
     var model;
     var graph;