From 2f08c56260c371bd72f5be7a763db5f28ec4b6e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Wed, 23 Jan 2019 13:10:49 +0100 Subject: [PATCH] Moved dashboard srv and snapshot ctrl --- .../ShareModal/ShareSnapshotCtrl.ts} | 0 public/app/features/dashboard/components/ShareModal/index.ts | 1 + public/app/features/dashboard/index.ts | 3 +-- .../dashboard/{dashboard_srv.ts => services/DashboardSrv.ts} | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) rename public/app/features/dashboard/{share_snapshot_ctrl.ts => components/ShareModal/ShareSnapshotCtrl.ts} (100%) rename public/app/features/dashboard/{dashboard_srv.ts => services/DashboardSrv.ts} (98%) diff --git a/public/app/features/dashboard/share_snapshot_ctrl.ts b/public/app/features/dashboard/components/ShareModal/ShareSnapshotCtrl.ts similarity index 100% rename from public/app/features/dashboard/share_snapshot_ctrl.ts rename to public/app/features/dashboard/components/ShareModal/ShareSnapshotCtrl.ts diff --git a/public/app/features/dashboard/components/ShareModal/index.ts b/public/app/features/dashboard/components/ShareModal/index.ts index 053f40c8278..3f27d5a1ba3 100644 --- a/public/app/features/dashboard/components/ShareModal/index.ts +++ b/public/app/features/dashboard/components/ShareModal/index.ts @@ -1 +1,2 @@ export { ShareModalCtrl } from './ShareModalCtrl'; +export { ShareSnapshotCtrl } from './ShareSnapshotCtrl'; diff --git a/public/app/features/dashboard/index.ts b/public/app/features/dashboard/index.ts index 3887e10629e..fab23d4641f 100644 --- a/public/app/features/dashboard/index.ts +++ b/public/app/features/dashboard/index.ts @@ -1,6 +1,4 @@ import './dashboard_ctrl'; -import './share_snapshot_ctrl'; -import './dashboard_srv'; import './validation_srv'; import './time_srv'; import './ad_hoc_filters'; @@ -14,6 +12,7 @@ import './panellinks/module'; import './services/DashboardViewStateSrv'; import './services/UnsavedChangesSrv'; import './services/DashboardLoaderSrv'; +import './services/DashboardSrv'; // Components import './components/DashLinks'; diff --git a/public/app/features/dashboard/dashboard_srv.ts b/public/app/features/dashboard/services/DashboardSrv.ts similarity index 98% rename from public/app/features/dashboard/dashboard_srv.ts rename to public/app/features/dashboard/services/DashboardSrv.ts index d5695a577c5..67a4938c6aa 100644 --- a/public/app/features/dashboard/dashboard_srv.ts +++ b/public/app/features/dashboard/services/DashboardSrv.ts @@ -1,5 +1,5 @@ import coreModule from 'app/core/core_module'; -import { DashboardModel } from './dashboard_model'; +import { DashboardModel } from '../dashboard_model'; import locationUtil from 'app/core/utils/location_util'; export class DashboardSrv {