From 1d27f666e4f0b6f14a271f29c52c900730f456c9 Mon Sep 17 00:00:00 2001 From: Chris Houseknecht Date: Fri, 8 Nov 2013 18:16:52 +0000 Subject: [PATCH] AC-616 Fixed date warning vs. date expired message. The CheckLicense routine now looks for date_expired flag. --- awx/ui/static/js/helpers/Access.js | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) 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';