mirror of
https://github.com/ansible/awx.git
synced 2026-02-28 16:28:43 -03:30
Fix for input directive using strict comparison to determined "checked" row
This commit is contained in:
@@ -46,7 +46,7 @@ export default
|
||||
if (row.checked) {
|
||||
row.success_class = 'success';
|
||||
} else {
|
||||
row.checked = true;
|
||||
row.checked = 1;
|
||||
row.success_class = '';
|
||||
}
|
||||
$scope.$emit('inventorySelected', row);
|
||||
|
||||
@@ -44,7 +44,7 @@ export default ['templateUrl', function(templateUrl) {
|
||||
if($scope.currentSelection && $scope.currentSelection.id) {
|
||||
$scope[list.name].forEach(function(row) {
|
||||
if (row.id === $scope.currentSelection.id) {
|
||||
row.checked = true;
|
||||
row.checked = 1;
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -71,7 +71,7 @@ export default ['templateUrl', function(templateUrl) {
|
||||
if (row.checked) {
|
||||
row.success_class = 'success';
|
||||
} else {
|
||||
row.checked = true;
|
||||
row.checked = 1;
|
||||
row.success_class = '';
|
||||
}
|
||||
$scope.currentSelection = {
|
||||
|
||||
Reference in New Issue
Block a user