mirror of
https://github.com/ansible/awx.git
synced 2026-03-22 11:25:08 -02:30
problem with version on About Tower and View License
This commit is contained in:
@@ -44,7 +44,7 @@ angular.module('AboutAnsibleHelpModal', ['RestServices', 'Utilities','ModalDialo
|
|||||||
scope.removeBuildAboutDialog = scope.$on('BuildAboutDialog', function(e, data) {
|
scope.removeBuildAboutDialog = scope.$on('BuildAboutDialog', function(e, data) {
|
||||||
var spaces, i, j,
|
var spaces, i, j,
|
||||||
paddedStr = "",
|
paddedStr = "",
|
||||||
version = data.version.replace(/-\d*$/,'');
|
version = data.version.replace(/-.*$/,'');
|
||||||
|
|
||||||
spaces = Math.floor((16-version.length)/2);
|
spaces = Math.floor((16-version.length)/2);
|
||||||
for( i=0; i<=spaces; i++){
|
for( i=0; i<=spaces; i++){
|
||||||
|
|||||||
@@ -537,7 +537,7 @@ function ($location, $rootScope, $compile, $filter, GenerateForm, Rest, Alert, G
|
|||||||
}
|
}
|
||||||
scope.removeLicenseDataReady = scope.$on('LicenseDataReady', function(e, data) {
|
scope.removeLicenseDataReady = scope.$on('LicenseDataReady', function(e, data) {
|
||||||
var html, version;
|
var html, version;
|
||||||
version = data.version.replace(/-\d*$/,'');
|
version = data.version.replace(/-.*$/,'');
|
||||||
self.setLicense(data.license_info, version);
|
self.setLicense(data.license_info, version);
|
||||||
html = self.getDefaultHTML(data.license_info);
|
html = self.getDefaultHTML(data.license_info);
|
||||||
self.loadDefaultScope(data.license_info, version);
|
self.loadDefaultScope(data.license_info, version);
|
||||||
|
|||||||
Reference in New Issue
Block a user