mirror of
https://github.com/ansible/awx.git
synced 2026-01-13 19:10:07 -03:30
Merge pull request #110 from mabashian/7280-instance-group-lookup
Check selected rows when instance groups modal list is updated
This commit is contained in:
commit
177f4d1563
@ -73,6 +73,16 @@ export default ['templateUrl', '$window', function(templateUrl, $window) {
|
||||
$scope.showModal();
|
||||
});
|
||||
|
||||
$scope.$watch('instance_groups', function(){
|
||||
angular.forEach($scope.instance_groups, function(instanceGroupRow) {
|
||||
angular.forEach($scope.igTags, function(selectedInstanceGroup){
|
||||
if(selectedInstanceGroup.id === instanceGroupRow.id) {
|
||||
instanceGroupRow.isSelected = true;
|
||||
}
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
init();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user