From ab47c2c734296bc2bb0c50a3d8005c2752da4bfa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Fri, 6 Mar 2015 10:01:18 +0100 Subject: [PATCH] Fixed influxdb 0.9 data source, renamed clone dashboard to Save As... --- src/app/features/dashboard/all.js | 2 +- .../features/dashboard/dashboardNavCtrl.js | 4 +-- ...oneDashboard.html => saveDashboardAs.html} | 6 ++-- ...ashboardCtrl.js => saveDashboardAsCtrl.js} | 2 +- .../features/org/partials/datasourceEdit.html | 2 +- src/app/partials/dashboard_topnav.html | 2 +- .../elasticsearch/partials/config.html | 4 +-- .../datasource/influxdb/partials/config.html | 32 +++++++++++++++++++ .../influxdb_08/partials/config.html | 2 +- 9 files changed, 44 insertions(+), 12 deletions(-) rename src/app/features/dashboard/partials/{cloneDashboard.html => saveDashboardAs.html} (71%) rename src/app/features/dashboard/{cloneDashboardCtrl.js => saveDashboardAsCtrl.js} (88%) create mode 100644 src/app/plugins/datasource/influxdb/partials/config.html diff --git a/src/app/features/dashboard/all.js b/src/app/features/dashboard/all.js index 0bd631447a7..e9edfe7fcdd 100644 --- a/src/app/features/dashboard/all.js +++ b/src/app/features/dashboard/all.js @@ -1,7 +1,7 @@ define([ './dashboardCtrl', './dashboardNavCtrl', - './cloneDashboardCtrl', + './saveDashboardAsCtrl', './playlistCtrl', './rowCtrl', './sharePanelCtrl', diff --git a/src/app/features/dashboard/dashboardNavCtrl.js b/src/app/features/dashboard/dashboardNavCtrl.js index fa639d5dbad..2148836ac12 100644 --- a/src/app/features/dashboard/dashboardNavCtrl.js +++ b/src/app/features/dashboard/dashboardNavCtrl.js @@ -120,12 +120,12 @@ function (angular, _, moment) { }); }; - $scope.cloneDashboard = function() { + $scope.saveDashboardAs = function() { var newScope = $rootScope.$new(); newScope.clone = angular.copy($scope.dashboard); $scope.appEvent('show-modal', { - src: './app/features/dashboard/partials/cloneDashboard.html', + src: './app/features/dashboard/partials/saveDashboardAs.html', scope: newScope, }); }; diff --git a/src/app/features/dashboard/partials/cloneDashboard.html b/src/app/features/dashboard/partials/saveDashboardAs.html similarity index 71% rename from src/app/features/dashboard/partials/cloneDashboard.html rename to src/app/features/dashboard/partials/saveDashboardAs.html index dcbea9d1d00..8d04280465e 100644 --- a/src/app/features/dashboard/partials/cloneDashboard.html +++ b/src/app/features/dashboard/partials/saveDashboardAs.html @@ -1,8 +1,8 @@ - diff --git a/src/app/features/dashboard/cloneDashboardCtrl.js b/src/app/features/dashboard/saveDashboardAsCtrl.js similarity index 88% rename from src/app/features/dashboard/cloneDashboardCtrl.js rename to src/app/features/dashboard/saveDashboardAsCtrl.js index ecbc0895d8b..16dc291e9fa 100644 --- a/src/app/features/dashboard/cloneDashboardCtrl.js +++ b/src/app/features/dashboard/saveDashboardAsCtrl.js @@ -6,7 +6,7 @@ function (angular) { var module = angular.module('grafana.controllers'); - module.controller('CloneDashboardCtrl', function($scope, backendSrv, $location) { + module.controller('SaveDashboardAsCtrl', function($scope, backendSrv, $location) { $scope.init = function() { $scope.clone.id = null; diff --git a/src/app/features/org/partials/datasourceEdit.html b/src/app/features/org/partials/datasourceEdit.html index f1b0ef46038..c0fdf19bb77 100644 --- a/src/app/features/org/partials/datasourceEdit.html +++ b/src/app/features/org/partials/datasourceEdit.html @@ -49,7 +49,7 @@ Url
  • - +
  • Access Direct = url is used directly from browser, Proxy = Grafana backend will proxy the request diff --git a/src/app/partials/dashboard_topnav.html b/src/app/partials/dashboard_topnav.html index 1a98b428fbf..5f458ae1cdd 100644 --- a/src/app/partials/dashboard_topnav.html +++ b/src/app/partials/dashboard_topnav.html @@ -43,7 +43,7 @@
  • Templating
  • Export
  • View JSON
  • -
  • Clone dashboard
  • +
  • Save As...
  • Delete dashboard
  • diff --git a/src/app/plugins/datasource/elasticsearch/partials/config.html b/src/app/plugins/datasource/elasticsearch/partials/config.html index 21b3d51e5cf..2ebdf43a486 100644 --- a/src/app/plugins/datasource/elasticsearch/partials/config.html +++ b/src/app/plugins/datasource/elasticsearch/partials/config.html @@ -1,4 +1,4 @@ -

    Elastic search details

    +
    Elastic search details
    diff --git a/src/app/plugins/datasource/influxdb/partials/config.html b/src/app/plugins/datasource/influxdb/partials/config.html new file mode 100644 index 00000000000..541db7cd15d --- /dev/null +++ b/src/app/plugins/datasource/influxdb/partials/config.html @@ -0,0 +1,32 @@ +
    InfluxDB Details
    + +
    +
      +
    • + Database +
    • +
    • + +
    • +
    +
    +
    +
    +
      +
    • + User +
    • +
    • + +
    • +
    • + Password +
    • +
    • + +
    • +
    +
    +
    + + diff --git a/src/app/plugins/datasource/influxdb_08/partials/config.html b/src/app/plugins/datasource/influxdb_08/partials/config.html index d7c5d165044..541db7cd15d 100644 --- a/src/app/plugins/datasource/influxdb_08/partials/config.html +++ b/src/app/plugins/datasource/influxdb_08/partials/config.html @@ -23,7 +23,7 @@ Password
  • - +