mirror of
https://github.com/ansible/awx.git
synced 2024-10-31 23:51:09 +03:00
[system_tracking] Disable single result view for host-to-host compares
This commit is contained in:
parent
d41b8a363f
commit
714d6a98bf
@ -177,14 +177,17 @@ function controller($rootScope,
|
||||
$scope.error = null;
|
||||
|
||||
if (_.isEmpty(info.factData)) {
|
||||
// info = _.reject({
|
||||
// name: 'NoScanDifferences',
|
||||
// message: 'No differences in the scans on the dates you selected. Please try selecting different dates.',
|
||||
// dateValues:
|
||||
// { leftDate: $scope.leftDate.clone(),
|
||||
// rightDate: $scope.rightDate.clone()
|
||||
// }
|
||||
// });
|
||||
|
||||
if ($scope.compareMode === 'host-to-host') {
|
||||
info = _.reject({
|
||||
name: 'NoScanDifferences',
|
||||
message: 'No differences in the scans on the dates you selected. Please try selecting different dates.',
|
||||
dateValues:
|
||||
{ leftDate: $scope.leftDate.clone(),
|
||||
rightDate: $scope.rightDate.clone()
|
||||
}
|
||||
});
|
||||
} else {
|
||||
$scope.singleFactOnly = true;
|
||||
$scope.factData = info.leftData.map(function(fact) {
|
||||
var keyNameMap = activeModule.keyNameMap;
|
||||
@ -242,6 +245,7 @@ function controller($rootScope,
|
||||
facts: facts
|
||||
};
|
||||
});
|
||||
}
|
||||
} else {
|
||||
$scope.singleFactOnly = false;
|
||||
$scope.factData = info.factData;
|
||||
|
Loading…
Reference in New Issue
Block a user