Clear cached selected items on swift objects table

The swift objects/folders table was caching the selected
items because it was broadcasting the wrong hzTable event
to clear them when needed.

Change-Id: Ie6d594718d6f2ca50f59d44d20978ccdb28734f5
Closes-Bug: #1629993
(cherry picked from commit d556a82ee2)
This commit is contained in:
Luis Daniel Castellanos 2016-10-13 15:56:06 -05:00 committed by Rob Cresswell
parent 20ea46250e
commit 6de13be183
1 changed files with 3 additions and 1 deletions

View File

@ -34,6 +34,7 @@
'horizon.dashboard.project.containers.containerRoute',
'horizon.dashboard.project.containers.objects-batch-actions',
'horizon.dashboard.project.containers.objects-row-actions',
'horizon.framework.widgets.table.events',
'$q',
'$routeParams',
'$scope'
@ -43,6 +44,7 @@
containerRoute,
batchActions,
rowActions,
hzTableEvents,
$q,
$routeParams,
$scope) {
@ -129,7 +131,7 @@
return;
}
if (result.deleted.length > 0) {
$scope.$broadcast('hzTable:clearSelected');
$scope.$broadcast(hzTableEvents.CLEAR_SELECTIONS);
ctrl.model.updateContainer();
ctrl.model.selectContainer(
ctrl.model.container.name,