Merge "Fix unnecessary requests in angular image panel"
This commit is contained in:
commit
416a398dc1
|
@ -331,19 +331,19 @@
|
|||
var path = $windowProvider.$get().STATIC_URL + 'app/core/images/';
|
||||
$provide.constant('horizon.app.core.images.basePath', path);
|
||||
|
||||
$routeProvider.when('/project/images/:id/', {
|
||||
$routeProvider.when('/project/images/:id', {
|
||||
redirectTo: goToAngularDetails
|
||||
});
|
||||
|
||||
$routeProvider.when('/admin/images/:id/detail/', {
|
||||
$routeProvider.when('/admin/images/:id/detail', {
|
||||
redirectTo: goToAngularDetails
|
||||
});
|
||||
|
||||
$routeProvider.when('/project/images/', {
|
||||
$routeProvider.when('/project/images', {
|
||||
templateUrl: path + 'panel.html'
|
||||
});
|
||||
|
||||
$routeProvider.when('/admin/images/', {
|
||||
$routeProvider.when('/admin/images', {
|
||||
templateUrl: path + 'admin-panel.html'
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue