فهرست منبع

Moved snapshot route to core routes

utkarshcmu 10 سال پیش
والد
کامیت
6e99eed417
3فایلهای تغییر یافته به همراه4 افزوده شده و 19 حذف شده
  1. 4 0
      public/app/core/routes/all.js
  2. 0 1
      public/app/features/snapshot/all.js
  3. 0 18
      public/app/features/snapshot/snapshot_routes.js

+ 4 - 0
public/app/core/routes/all.js

@@ -132,6 +132,10 @@ define([
         templateUrl: 'app/partials/reset_password.html',
         templateUrl: 'app/partials/reset_password.html',
         controller : 'ResetPasswordCtrl',
         controller : 'ResetPasswordCtrl',
       })
       })
+      .when('/dashboard/snapshots', {
+        templateUrl: 'app/features/snapshot/partials/snapshots.html',
+        controller : 'SnapshotsCtrl'
+      })
       .when('/apps', {
       .when('/apps', {
         templateUrl: 'app/features/apps/partials/list.html',
         templateUrl: 'app/features/apps/partials/list.html',
         controller: 'AppListCtrl',
         controller: 'AppListCtrl',

+ 0 - 1
public/app/features/snapshot/all.js

@@ -1,4 +1,3 @@
 define([
 define([
   './snapshot_ctrl',
   './snapshot_ctrl',
-  './snapshot_routes'
 ], function () {});
 ], function () {});

+ 0 - 18
public/app/features/snapshot/snapshot_routes.js

@@ -1,18 +0,0 @@
-define([
-  'angular',
-  'app/core/config',
-  'lodash'
-],
-function (angular) {
-  'use strict';
-
-  var module = angular.module('grafana.routes');
-
-  module.config(function($routeProvider) {
-    $routeProvider
-      .when('/dashboard/snapshots', {
-        templateUrl: 'app/features/snapshot/partials/snapshots.html',
-        controller : 'SnapshotsCtrl'
-      });
-  });
-});