mirror of
https://github.com/ansible/awx.git
synced 2026-03-10 22:19:28 -02:30
Merge pull request #3331 from mabashian/IG-instances-modal
Fixes bug where all instances were preselected when modal was initially opened Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
This commit is contained in:
@@ -36,7 +36,7 @@ function InstanceModalController ($scope, $state, Dataset, models, strings, Proc
|
|||||||
|
|
||||||
$scope.$watch('vm.instances', function() {
|
$scope.$watch('vm.instances', function() {
|
||||||
angular.forEach(vm.instances, function(instance) {
|
angular.forEach(vm.instances, function(instance) {
|
||||||
instance.isSelected = _.filter(vm.selectedRows, 'id', instance.id).length > 0;
|
instance.isSelected = _.filter(vm.selectedRows, { 'id': instance.id }).length > 0;
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user