From dcf8327dc97f94dcc29b0868f37d615977cea6a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Wed, 31 Oct 2018 12:25:46 -0700 Subject: [PATCH] moved profile pages to it's own feature folder --- public/app/features/all.ts | 2 ++ public/app/features/org/all.ts | 2 -- .../change_password_ctrl.ts => profile/ChangePasswordCtrl.ts} | 0 .../features/{org/profile_ctrl.ts => profile/ProfileCtrl.ts} | 0 .../features/{org => profile}/partials/change_password.html | 0 public/app/features/{org => profile}/partials/profile.html | 0 public/app/routes/routes.ts | 4 ++-- 7 files changed, 4 insertions(+), 4 deletions(-) rename public/app/features/{org/change_password_ctrl.ts => profile/ChangePasswordCtrl.ts} (100%) rename public/app/features/{org/profile_ctrl.ts => profile/ProfileCtrl.ts} (100%) rename public/app/features/{org => profile}/partials/change_password.html (100%) rename public/app/features/{org => profile}/partials/profile.html (100%) diff --git a/public/app/features/all.ts b/public/app/features/all.ts index d62eb8cacdc..ccdc7d7a820 100644 --- a/public/app/features/all.ts +++ b/public/app/features/all.ts @@ -10,3 +10,5 @@ import './alerting/NotificationsEditCtrl'; import './alerting/NotificationsListCtrl'; import './manage-dashboards'; import './teams/CreateTeamCtrl'; +import './profile/ProfileCtrl'; +import './profile/ChangePasswordCtrl'; diff --git a/public/app/features/org/all.ts b/public/app/features/org/all.ts index f87905c6b1b..18d75f71dca 100644 --- a/public/app/features/org/all.ts +++ b/public/app/features/org/all.ts @@ -1,5 +1,3 @@ -import './profile_ctrl'; import './select_org_ctrl'; -import './change_password_ctrl'; import './new_org_ctrl'; import './user_invite_ctrl'; diff --git a/public/app/features/org/change_password_ctrl.ts b/public/app/features/profile/ChangePasswordCtrl.ts similarity index 100% rename from public/app/features/org/change_password_ctrl.ts rename to public/app/features/profile/ChangePasswordCtrl.ts diff --git a/public/app/features/org/profile_ctrl.ts b/public/app/features/profile/ProfileCtrl.ts similarity index 100% rename from public/app/features/org/profile_ctrl.ts rename to public/app/features/profile/ProfileCtrl.ts diff --git a/public/app/features/org/partials/change_password.html b/public/app/features/profile/partials/change_password.html similarity index 100% rename from public/app/features/org/partials/change_password.html rename to public/app/features/profile/partials/change_password.html diff --git a/public/app/features/org/partials/profile.html b/public/app/features/profile/partials/profile.html similarity index 100% rename from public/app/features/org/partials/profile.html rename to public/app/features/profile/partials/profile.html diff --git a/public/app/routes/routes.ts b/public/app/routes/routes.ts index 7e70ac34274..6770011278f 100644 --- a/public/app/routes/routes.ts +++ b/public/app/routes/routes.ts @@ -179,12 +179,12 @@ export function setupAngularRoutes($routeProvider, $locationProvider) { }, }) .when('/profile', { - templateUrl: 'public/app/features/org/partials/profile.html', + templateUrl: 'public/app/features/profile/partials/profile.html', controller: 'ProfileCtrl', controllerAs: 'ctrl', }) .when('/profile/password', { - templateUrl: 'public/app/features/org/partials/change_password.html', + templateUrl: 'public/app/features/profile/partials/change_password.html', controller: 'ChangePasswordCtrl', }) .when('/profile/select-org', {