mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Changed name of dashboard service to dashboardSrv
This commit is contained in:
parent
abc8077a96
commit
7b011c1d96
@ -11,7 +11,7 @@ function (angular, $, config, _) {
|
|||||||
var module = angular.module('grafana.controllers');
|
var module = angular.module('grafana.controllers');
|
||||||
|
|
||||||
module.controller('DashCtrl', function(
|
module.controller('DashCtrl', function(
|
||||||
$scope, $rootScope, dashboardKeybindings, filterSrv, dashboard, panelMoveSrv, timer) {
|
$scope, $rootScope, dashboardKeybindings, filterSrv, dashboardSrv, panelMoveSrv, timer) {
|
||||||
|
|
||||||
$scope.editor = { index: 0 };
|
$scope.editor = { index: 0 };
|
||||||
$scope.panelNames = config.panels;
|
$scope.panelNames = config.panels;
|
||||||
@ -26,7 +26,7 @@ function (angular, $, config, _) {
|
|||||||
|
|
||||||
$rootScope.fullscreen = false;
|
$rootScope.fullscreen = false;
|
||||||
|
|
||||||
$scope.dashboard = dashboard.create(dashboardData);
|
$scope.dashboard = dashboardSrv.create(dashboardData);
|
||||||
$scope.grafana.style = $scope.dashboard.style;
|
$scope.grafana.style = $scope.dashboard.style;
|
||||||
|
|
||||||
$scope.filter = filterSrv;
|
$scope.filter = filterSrv;
|
||||||
|
@ -10,6 +10,6 @@ define([
|
|||||||
'./playlistSrv',
|
'./playlistSrv',
|
||||||
'./unsavedChangesSrv',
|
'./unsavedChangesSrv',
|
||||||
'./dashboard/dashboardKeyBindings',
|
'./dashboard/dashboardKeyBindings',
|
||||||
'./dashboard/dashboardModel',
|
'./dashboard/dashboardSrv',
|
||||||
],
|
],
|
||||||
function () {});
|
function () {});
|
||||||
|
@ -10,7 +10,7 @@ function (angular, $, kbn, _) {
|
|||||||
|
|
||||||
var module = angular.module('grafana.services');
|
var module = angular.module('grafana.services');
|
||||||
|
|
||||||
module.service('dashboard', function(timer, $rootScope, $timeout) {
|
module.service('dashboardSrv', function(timer, $rootScope, $timeout) {
|
||||||
|
|
||||||
function DashboardModel (data) {
|
function DashboardModel (data) {
|
||||||
|
|
@ -1,5 +1,5 @@
|
|||||||
define([
|
define([
|
||||||
'services/dashboard/dashboardModel'
|
'services/dashboard/dashboardSrv'
|
||||||
], function() {
|
], function() {
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
@ -8,8 +8,8 @@ define([
|
|||||||
|
|
||||||
beforeEach(module('grafana.services'));
|
beforeEach(module('grafana.services'));
|
||||||
|
|
||||||
beforeEach(inject(function(dashboard) {
|
beforeEach(inject(function(dashboardSrv) {
|
||||||
model = dashboard.create({});
|
model = dashboardSrv.create({});
|
||||||
}));
|
}));
|
||||||
|
|
||||||
it('should have title', function() {
|
it('should have title', function() {
|
||||||
@ -30,8 +30,8 @@ define([
|
|||||||
|
|
||||||
beforeEach(module('grafana.services'));
|
beforeEach(module('grafana.services'));
|
||||||
|
|
||||||
beforeEach(inject(function(dashboard) {
|
beforeEach(inject(function(dashboardSrv) {
|
||||||
model = dashboard.create({
|
model = dashboardSrv.create({
|
||||||
services: { filter: { time: { from: 'now-1d', to: 'now'}, list: [1] }},
|
services: { filter: { time: { from: 'now-1d', to: 'now'}, list: [1] }},
|
||||||
rows: [
|
rows: [
|
||||||
{
|
{
|
@ -121,7 +121,7 @@ require([
|
|||||||
'specs/graph-ctrl-specs',
|
'specs/graph-ctrl-specs',
|
||||||
'specs/filterSrv-specs',
|
'specs/filterSrv-specs',
|
||||||
'specs/kbn-format-specs',
|
'specs/kbn-format-specs',
|
||||||
'specs/dashboardModel-specs',
|
'specs/dashboardSrv-specs',
|
||||||
'specs/influxSeries-specs'
|
'specs/influxSeries-specs'
|
||||||
], function () {
|
], function () {
|
||||||
window.__karma__.start();
|
window.__karma__.start();
|
||||||
|
Loading…
Reference in New Issue
Block a user