diff --git a/awx/ui/static/js/helpers/Access.js b/awx/ui/static/js/helpers/Access.js
index 5baf273f15..cdeff4d0d0 100644
--- a/awx/ui/static/js/helpers/Access.js
+++ b/awx/ui/static/js/helpers/Access.js
@@ -73,9 +73,10 @@ angular.module('AccessHelper', ['RestServices', 'Utilities', 'ngCookies'])
'contact info@ansibleworks.com for assistance.';
Alert(hdr, msg, status);
}
- if (license['date_warning'] !== undefined && license['date_warning'] == true) {
+ if (license['date_expired'] !== undefined && license['date_expired'] == true) {
+ // expired
status = 'alert-info';
- hdr = 'License Expired';
+ hdr = 'AWX License Expired';
msg = 'Your AnsibleWorks AWX License has expired and is no longer compliant. ' +
'You can continue, but you will be unable to add any additional hosts. Please ' +
'visit the AnsibleWorks online store ' +
@@ -83,6 +84,14 @@ angular.module('AccessHelper', ['RestServices', 'Utilities', 'ngCookies'])
'for assistance.';
Alert(hdr, msg, status);
}
+ else if (license['date_warning'] !== undefined && license['date_warning'] == true) {
+ status = 'alert-info';
+ hdr = 'AWX License Warning';
+ msg = 'Your AnsibleWorks AWX License is about to expire. To extend your license, please ' +
+ 'visit the AnsibleWorks online store, or ' +
+ 'contact info@ansibleworks.com for more information.';
+ Alert(hdr, msg, status);
+ }
if (license['free_instances'] !== undefined && parseInt(license['free_instances']) <= 0) {
status = 'alert-info';
hdr = 'License Warning';