diff --git a/.gitignore b/.gitignore
index 5ecb68eb64e..9d0b5d840bb 100644
--- a/.gitignore
+++ b/.gitignore
@@ -9,3 +9,4 @@ config.js
# Editor junk
*.sublime-workspace
*.swp
+.idea/
diff --git a/src/app/controllers/dashLoader.js b/src/app/controllers/dashLoader.js
index 49bc25793d6..17a162b6935 100644
--- a/src/app/controllers/dashLoader.js
+++ b/src/app/controllers/dashLoader.js
@@ -38,7 +38,9 @@ function (angular, _, moment, config) {
};
$scope.saveForSharing = function() {
- $scope.db.saveDashboardTemp($scope.dashboard)
+ var clone = angular.copy($scope.dashboard);
+ clone.temp = true;
+ $scope.db.saveDashboard(clone)
.then(function(result) {
$scope.share = { url: result.url, title: result.title };
@@ -71,7 +73,8 @@ function (angular, _, moment, config) {
$scope.saveDashboard = function() {
if (!this.isAdmin()) { return false; }
- $scope.db.saveDashboard($scope.dashboard, $scope.dashboard.title)
+ var clone = angular.copy($scope.dashboard);
+ $scope.db.saveDashboard(clone)
.then(function(result) {
alertSrv.set('Dashboard Saved', 'Dashboard has been saved as "' + result.title + '"','success', 5000);
diff --git a/src/app/controllers/row.js b/src/app/controllers/row.js
index 279116a92e6..0f020ff345d 100644
--- a/src/app/controllers/row.js
+++ b/src/app/controllers/row.js
@@ -130,28 +130,9 @@ function (angular, app, _) {
}
};
- /** @scratch /panels/0
- * [[panels]]
- * = Panels
- *
- * [partintro]
- * --
- * *grafana* dashboards are made up of blocks called +panels+. Panels are organized into rows
- * and can serve many purposes, though most are designed to provide the results of a query or
- * multiple queries as a visualization. Other panels may show collections of documents or
- * allow you to insert instructions for your users.
- *
- * Panels can be configured easily via the grafana web interface. For more advanced usage, such
- * as templated or scripted dashboards, documentation of panel properties is available in this
- * section. You may find settings here which are not exposed via the web interface.
- *
- * Each panel type has its own properties, hover there are several that are shared.
- *
- */
-
$scope.reset_panel = function(type) {
var
- defaultSpan = 4,
+ defaultSpan = 12,
_as = 12-$scope.rowSpan($scope.row);
$scope.panel = {
@@ -192,4 +173,4 @@ function (angular, app, _) {
});
-});
\ No newline at end of file
+});
diff --git a/src/app/dashboards/default.json b/src/app/dashboards/default.json
index 6c63b98ab5d..a31d4985779 100644
--- a/src/app/dashboards/default.json
+++ b/src/app/dashboards/default.json
@@ -134,10 +134,5 @@
"now": true
}
],
- "loader": {
- "save_temp": true,
- "save_temp_ttl_enable": true,
- "save_temp_ttl": "30d",
- },
"refresh": false
}
diff --git a/src/app/dashboards/empty.json b/src/app/dashboards/empty.json
index 041790a41cd..25a375e5821 100644
--- a/src/app/dashboards/empty.json
+++ b/src/app/dashboards/empty.json
@@ -65,10 +65,5 @@
"now": true
}
],
- "loader": {
- "save_temp": true,
- "save_temp_ttl_enable": true,
- "save_temp_ttl": "30d",
- },
"refresh": false
}
diff --git a/src/app/partials/dashLoader.html b/src/app/partials/dashLoader.html
index c22137de64a..5ff4e1598c9 100644
--- a/src/app/partials/dashLoader.html
+++ b/src/app/partials/dashLoader.html
@@ -47,7 +47,7 @@