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