From f91d38bd6e73777149d68b0c5a2ab5c5c2e93a92 Mon Sep 17 00:00:00 2001 From: Kenji Ishii Date: Tue, 23 Aug 2016 17:26:10 +0900 Subject: [PATCH] Fix unnecessary requests in angular image panel When displaying angular image panel, the request to get images is called twice. This is caused by the setting of routeProvider. This patch will fix it. Change-Id: I37db691e846d3b80fa21794922e1998cc23243e3 Closes-Bug: #1615573 --- .../static/app/core/images/images.module.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/openstack_dashboard/static/app/core/images/images.module.js b/openstack_dashboard/static/app/core/images/images.module.js index 14a4e21e81..207e6d6a27 100644 --- a/openstack_dashboard/static/app/core/images/images.module.js +++ b/openstack_dashboard/static/app/core/images/images.module.js @@ -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' });