Commit 05738258 by Torkel Ödegaard

Fixed dashboard import issue after move

parent e713b0f0
...@@ -232,3 +232,5 @@ export class DashboardImportCtrl { ...@@ -232,3 +232,5 @@ export class DashboardImportCtrl {
this.gnetInfo = ''; this.gnetInfo = '';
} }
} }
export default DashboardImportCtrl;
...@@ -8,10 +8,8 @@ export * from './components/UploadDashboard'; ...@@ -8,10 +8,8 @@ export * from './components/UploadDashboard';
// Controllers // Controllers
import { DashboardListCtrl } from './DashboardListCtrl'; import { DashboardListCtrl } from './DashboardListCtrl';
import { SnapshotListCtrl } from './SnapshotListCtrl'; import { SnapshotListCtrl } from './SnapshotListCtrl';
import { DashboardImportCtrl } from './DashboardImportCtrl';
import coreModule from 'app/core/core_module'; import coreModule from 'app/core/core_module';
coreModule.controller('DashboardListCtrl', DashboardListCtrl); coreModule.controller('DashboardListCtrl', DashboardListCtrl);
coreModule.controller('SnapshotListCtrl', SnapshotListCtrl); coreModule.controller('SnapshotListCtrl', SnapshotListCtrl);
coreModule.controller('DashboardImportCtrl', DashboardImportCtrl);
...@@ -12,6 +12,7 @@ import FolderSettingsPage from 'app/features/folders/FolderSettingsPage'; ...@@ -12,6 +12,7 @@ import FolderSettingsPage from 'app/features/folders/FolderSettingsPage';
import FolderPermissions from 'app/features/folders/FolderPermissions'; import FolderPermissions from 'app/features/folders/FolderPermissions';
import CreateFolderCtrl from 'app/features/folders/CreateFolderCtrl'; import CreateFolderCtrl from 'app/features/folders/CreateFolderCtrl';
import FolderDashboardsCtrl from 'app/features/folders/FolderDashboardsCtrl'; import FolderDashboardsCtrl from 'app/features/folders/FolderDashboardsCtrl';
import DashboardImportCtrl from 'app/features/manage-dashboards/DashboardImportCtrl';
import DataSourcesListPage from 'app/features/datasources/DataSourcesListPage'; import DataSourcesListPage from 'app/features/datasources/DataSourcesListPage';
import NewDataSourcePage from '../features/datasources/NewDataSourcePage'; import NewDataSourcePage from '../features/datasources/NewDataSourcePage';
import UsersListPage from 'app/features/users/UsersListPage'; import UsersListPage from 'app/features/users/UsersListPage';
...@@ -68,8 +69,8 @@ export function setupAngularRoutes($routeProvider, $locationProvider) { ...@@ -68,8 +69,8 @@ export function setupAngularRoutes($routeProvider, $locationProvider) {
pageClass: 'page-dashboard', pageClass: 'page-dashboard',
}) })
.when('/dashboard/import', { .when('/dashboard/import', {
templateUrl: 'public/app/features/dashboard/partials/dashboard_import.html', templateUrl: 'public/app/features/manage-dashboards/partials/dashboard_import.html',
controller: 'DashboardImportCtrl', controller: DashboardImportCtrl,
controllerAs: 'ctrl', controllerAs: 'ctrl',
}) })
.when('/datasources', { .when('/datasources', {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment