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