mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 01:57:35 -03:30
AC-563 license check now responds to date_expired and date_warning flags. Prior to this it treated date_warning as if the date had expired.
This commit is contained in:
parent
6c2ea0a7bb
commit
e701857594
@ -847,7 +847,7 @@ input[type="checkbox"].checkbox-no-label {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.license-warning
|
||||
.license-warning,
|
||||
.license-demo {
|
||||
color: @warning;
|
||||
}
|
||||
|
||||
@ -186,10 +186,14 @@ angular.module('License', ['RestServices', 'Utilities', 'FormGenerator', 'Prompt
|
||||
scope['license_status'] = 'Demo';
|
||||
scope['status_color'] = 'license-demo';
|
||||
}
|
||||
else if (license['date_warning'] !== undefined && license['date_warning'] == true) {
|
||||
else if (license['date_expired'] !== undefined && license['date_expired'] == true) {
|
||||
scope['license_status'] = 'Expired';
|
||||
scope['status_color'] = 'license-expired';
|
||||
}
|
||||
else if (license['date_warning'] !== undefined && license['date_warning'] == true) {
|
||||
scope['license_status'] = 'Expiration Warning';
|
||||
scope['status_color'] = 'license-warning';
|
||||
}
|
||||
else if (license['free_instances'] !== undefined && parseInt(license['free_instances']) <= 0) {
|
||||
scope['license_status'] = 'No available managed hosts';
|
||||
scope['status_color'] = 'license-invalid';
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user