Clear selections for table view
Item selections on table view for batch actions does not be cleared after execution of actions. This patch ensures to clear item selections by emitting 'hzTable:clearSelection' event. Change-Id: I149a917c39d2892d243dd9fd5b245a8601b43052 Closes-Bug: #1777545
This commit is contained in:
parent
327f0c9e8c
commit
4a650d7c25
|
@ -30,12 +30,14 @@
|
|||
deleteService.$inject = [
|
||||
'$location',
|
||||
'$q',
|
||||
'$rootScope',
|
||||
'horizon.app.core.openstack-service-api.zun',
|
||||
'horizon.app.core.openstack-service-api.policy',
|
||||
'horizon.framework.util.actions.action-result.service',
|
||||
'horizon.framework.util.i18n.gettext',
|
||||
'horizon.framework.util.q.extensions',
|
||||
'horizon.framework.widgets.modal.deleteModalService',
|
||||
'horizon.framework.widgets.table.events',
|
||||
'horizon.framework.widgets.toast.service',
|
||||
'horizon.dashboard.container.containers.resourceType',
|
||||
'horizon.dashboard.container.containers.events',
|
||||
|
@ -43,8 +45,8 @@
|
|||
];
|
||||
|
||||
function deleteService(
|
||||
$location, $q, zun, policy, actionResult, gettext, $qExtensions, deleteModal,
|
||||
toast, resourceType, events, validStates
|
||||
$location, $q, $rootScope, zun, policy, actionResult, gettext, $qExtensions, deleteModal,
|
||||
tableEvents, toast, resourceType, events, validStates
|
||||
) {
|
||||
var scope;
|
||||
var context = {
|
||||
|
@ -137,6 +139,7 @@
|
|||
currentPath !== indexPath) {
|
||||
$location.path(indexPath);
|
||||
} else {
|
||||
$rootScope.$broadcast(tableEvents.CLEAR_SELECTIONS);
|
||||
return result.result;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue