Browse Source

moved profile pages to it's own feature folder

Torkel Ödegaard 7 years ago
parent
commit
dcf8327dc9

+ 2 - 0
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';

+ 0 - 2
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';

+ 0 - 0
public/app/features/org/change_password_ctrl.ts → public/app/features/profile/ChangePasswordCtrl.ts


+ 0 - 0
public/app/features/org/profile_ctrl.ts → public/app/features/profile/ProfileCtrl.ts


+ 0 - 0
public/app/features/org/partials/change_password.html → public/app/features/profile/partials/change_password.html


+ 0 - 0
public/app/features/org/partials/profile.html → public/app/features/profile/partials/profile.html


+ 2 - 2
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', {