mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 18:09:57 -03:30
fixes broken documentation link
This commit is contained in:
parent
99c8c4bf2b
commit
85eca47a93
@ -1,5 +1,6 @@
|
||||
function SmartSearchController (
|
||||
$scope,
|
||||
$rootScope,
|
||||
$state,
|
||||
$stateParams,
|
||||
$transitions,
|
||||
@ -111,10 +112,13 @@ function SmartSearchController (
|
||||
configService.getConfig()
|
||||
.then(config => {
|
||||
let version;
|
||||
|
||||
try {
|
||||
[version] = config.version.split('-');
|
||||
} catch (err) {
|
||||
if ($rootScope.BRAND_NAME === 'Tower') {
|
||||
try {
|
||||
[version] = config.version.split('-');
|
||||
} catch (err) {
|
||||
version = 'latest';
|
||||
}
|
||||
} else {
|
||||
version = 'latest';
|
||||
}
|
||||
|
||||
@ -279,6 +283,7 @@ function SmartSearchController (
|
||||
|
||||
SmartSearchController.$inject = [
|
||||
'$scope',
|
||||
'$rootScope',
|
||||
'$state',
|
||||
'$stateParams',
|
||||
'$transitions',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user