|
|
@@ -10,6 +10,9 @@ import ApiKeys from 'app/features/api-keys/ApiKeysPage';
|
|
|
import PluginListPage from 'app/features/plugins/PluginListPage';
|
|
|
import FolderSettingsPage from 'app/features/folders/FolderSettingsPage';
|
|
|
import FolderPermissions from 'app/features/folders/FolderPermissions';
|
|
|
+import CreateFolderCtrl from 'app/features/folders/CreateFolderCtrl';
|
|
|
+import FolderDashboardsCtrl from 'app/features/folders/FolderDashboardsCtrl';
|
|
|
+import DashboardImportCtrl from 'app/features/manage-dashboards/DashboardImportCtrl';
|
|
|
import DataSourcesListPage from 'app/features/datasources/DataSourcesListPage';
|
|
|
import NewDataSourcePage from '../features/datasources/NewDataSourcePage';
|
|
|
import UsersListPage from 'app/features/users/UsersListPage';
|
|
|
@@ -66,8 +69,8 @@ export function setupAngularRoutes($routeProvider, $locationProvider) {
|
|
|
pageClass: 'page-dashboard',
|
|
|
})
|
|
|
.when('/dashboard/import', {
|
|
|
- templateUrl: 'public/app/features/dashboard/partials/dashboard_import.html',
|
|
|
- controller: 'DashboardImportCtrl',
|
|
|
+ templateUrl: 'public/app/features/manage-dashboards/partials/dashboard_import.html',
|
|
|
+ controller: DashboardImportCtrl,
|
|
|
controllerAs: 'ctrl',
|
|
|
})
|
|
|
.when('/datasources', {
|
|
|
@@ -100,8 +103,8 @@ export function setupAngularRoutes($routeProvider, $locationProvider) {
|
|
|
controllerAs: 'ctrl',
|
|
|
})
|
|
|
.when('/dashboards/folder/new', {
|
|
|
- templateUrl: 'public/app/features/dashboard/partials/create_folder.html',
|
|
|
- controller: 'CreateFolderCtrl',
|
|
|
+ templateUrl: 'public/app/features/folders/partials/create_folder.html',
|
|
|
+ controller: CreateFolderCtrl,
|
|
|
controllerAs: 'ctrl',
|
|
|
})
|
|
|
.when('/dashboards/f/:uid/:slug/permissions', {
|
|
|
@@ -117,8 +120,8 @@ export function setupAngularRoutes($routeProvider, $locationProvider) {
|
|
|
},
|
|
|
})
|
|
|
.when('/dashboards/f/:uid/:slug', {
|
|
|
- templateUrl: 'public/app/features/dashboard/partials/folder_dashboards.html',
|
|
|
- controller: 'FolderDashboardsCtrl',
|
|
|
+ templateUrl: 'public/app/features/folders/partials/folder_dashboards.html',
|
|
|
+ controller: FolderDashboardsCtrl,
|
|
|
controllerAs: 'ctrl',
|
|
|
})
|
|
|
.when('/dashboards/f/:uid', {
|