mirror of
https://github.com/ansible/awx.git
synced 2026-01-18 05:01:19 -03:30
Fallback to first hostname if only 1 host
This commit is contained in:
parent
cdc7f03c58
commit
8868235af2
@ -44,7 +44,7 @@ function controller($rootScope,
|
||||
$scope.rightScanDate = initialFactData.rightScanDate;
|
||||
|
||||
$scope.leftHostname = hosts[0].name;
|
||||
$scope.rightHostname = hosts[1].name;
|
||||
$scope.rightHostname = hosts.length > 1 ? hosts[1].name : hosts[0].name;
|
||||
|
||||
function setHeaderValues(viewType) {
|
||||
if (viewType === 'singleHost') {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user