mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
feat(apps): moving things around
This commit is contained in:
@@ -10,6 +10,7 @@ define([
|
||||
$locationProvider.html5Mode(true);
|
||||
|
||||
var loadOrgBundle = new BundleLoader.BundleLoader('app/features/org/all');
|
||||
var loadAppsBundle = new BundleLoader.BundleLoader('app/features/apps/all');
|
||||
|
||||
$routeProvider
|
||||
.when('/', {
|
||||
@@ -131,17 +132,17 @@ define([
|
||||
templateUrl: 'app/partials/reset_password.html',
|
||||
controller : 'ResetPasswordCtrl',
|
||||
})
|
||||
.when('/org/apps', {
|
||||
templateUrl: 'app/features/org/partials/app_list.html',
|
||||
.when('/apps', {
|
||||
templateUrl: 'app/features/apps/partials/list.html',
|
||||
controller: 'AppListCtrl',
|
||||
controllerAs: 'ctrl',
|
||||
resolve: loadOrgBundle,
|
||||
resolve: loadAppsBundle,
|
||||
})
|
||||
.when('/org/apps/edit/:type', {
|
||||
templateUrl: 'app/features/org/partials/app_edit.html',
|
||||
.when('/apps/edit/:type', {
|
||||
templateUrl: 'app/features/apps/partials/edit.html',
|
||||
controller: 'AppEditCtrl',
|
||||
controllerAs: 'ctrl',
|
||||
resolve: loadOrgBundle,
|
||||
resolve: loadAppsBundle,
|
||||
})
|
||||
.when('/global-alerts', {
|
||||
templateUrl: 'app/features/dashboard/partials/globalAlerts.html',
|
||||
|
||||
Reference in New Issue
Block a user