mirror of
https://github.com/ansible/awx.git
synced 2026-03-11 22:49:32 -02: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) {
|
if (row.checked) {
|
||||||
row.success_class = 'success';
|
row.success_class = 'success';
|
||||||
} else {
|
} else {
|
||||||
row.checked = true;
|
row.checked = 1;
|
||||||
row.success_class = '';
|
row.success_class = '';
|
||||||
}
|
}
|
||||||
$scope.$emit('inventorySelected', row);
|
$scope.$emit('inventorySelected', row);
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ export default ['templateUrl', function(templateUrl) {
|
|||||||
if($scope.currentSelection && $scope.currentSelection.id) {
|
if($scope.currentSelection && $scope.currentSelection.id) {
|
||||||
$scope[list.name].forEach(function(row) {
|
$scope[list.name].forEach(function(row) {
|
||||||
if (row.id === $scope.currentSelection.id) {
|
if (row.id === $scope.currentSelection.id) {
|
||||||
row.checked = true;
|
row.checked = 1;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -71,7 +71,7 @@ export default ['templateUrl', function(templateUrl) {
|
|||||||
if (row.checked) {
|
if (row.checked) {
|
||||||
row.success_class = 'success';
|
row.success_class = 'success';
|
||||||
} else {
|
} else {
|
||||||
row.checked = true;
|
row.checked = 1;
|
||||||
row.success_class = '';
|
row.success_class = '';
|
||||||
}
|
}
|
||||||
$scope.currentSelection = {
|
$scope.currentSelection = {
|
||||||
|
|||||||
Reference in New Issue
Block a user