mirror of
https://github.com/ansible/awx.git
synced 2026-05-07 01:17:37 -02:30
Fix annoying warning message related to license info not loading appropriately
Log it into the console though. This shouldn't be necessary after #1763 lands, but isn't a bad thing to be doing in general.
This commit is contained in:
@@ -72,7 +72,10 @@ export default
|
|||||||
scope.activityStreamActive = (toState.name === 'activityStream') ? true : false;
|
scope.activityStreamActive = (toState.name === 'activityStream') ? true : false;
|
||||||
scope.showActivityStreamButton = (FeaturesService.featureEnabled('activity_streams') || toState.name === 'activityStream') ? true : false;
|
scope.showActivityStreamButton = (FeaturesService.featureEnabled('activity_streams') || toState.name === 'activityStream') ? true : false;
|
||||||
var licenseInfo = FeaturesService.getLicenseInfo();
|
var licenseInfo = FeaturesService.getLicenseInfo();
|
||||||
scope.licenseType = licenseInfo.license_type;
|
scope.licenseType = licenseInfo ? licenseInfo.license_type : null;
|
||||||
|
if (!licenseInfo) {
|
||||||
|
console.warn("License info not loaded correctly");
|
||||||
|
}
|
||||||
})
|
})
|
||||||
.catch(function (response) {
|
.catch(function (response) {
|
||||||
ProcessErrors(null, response.data, response.status, null, {
|
ProcessErrors(null, response.data, response.status, null, {
|
||||||
|
|||||||
Reference in New Issue
Block a user