diff --git a/awx/ui/static/js/helpers/License.js b/awx/ui/static/js/helpers/License.js index 42d6b47d7b..d08e2ad9cc 100644 --- a/awx/ui/static/js/helpers/License.js +++ b/awx/ui/static/js/helpers/License.js @@ -156,7 +156,7 @@ function($rootScope, $compile, CreateDialog, Store, LicenseUpdateForm, GenerateF scope = (in_scope) ? in_scope : self.scope; json_data = ToJSON('json', license_key); - json_data.eula_accepted = (scope.eula_agreement === "true") ? true : false; + json_data.eula_accepted = scope.eula_agreement; if (typeof json_data === 'object' && Object.keys(json_data).length > 0) { Rest.setUrl(url); Rest.post(json_data) @@ -209,7 +209,6 @@ function($rootScope, $compile, CreateDialog, Store, LicenseUpdateForm, GenerateF scope.parseType = 'json'; scope.removeLicenseDialogReady = scope.$on('LicenseDialogReady', function() { - // scope.eula_agreement = false; $('#license_license_json').attr('ng-required' , 'true' ); $('#license_eula_agreement_chbox').attr('ng-required' , 'true' ); $('#license-submit-button').attr('ng-disabled' , "license_form.$invalid" ); @@ -368,23 +367,20 @@ function ($location, $rootScope, $compile, $filter, GenerateForm, Rest, Alert, G scope.license_json = JSON.stringify(self.license, null, ' '); scope.eula = self.eula; scope.eula_agreement = false; + + h = CheckLicense.getHTML(self.getLicense(),true).body; $('#license-modal-dialog #license_tabs').append("