mirror of
https://github.com/ansible/awx.git
synced 2026-03-05 10:41:05 -03:30
adjusting the awFeature controller to return true when a awFeature string is not provided
This commit is contained in:
@@ -1,10 +1,6 @@
|
|||||||
export default ['$rootScope', function ($rootScope) {
|
export default ['$rootScope', function ($rootScope) {
|
||||||
|
|
||||||
this.isFeatureEnabled = function(feature){
|
this.isFeatureEnabled = function(feature){
|
||||||
if($rootScope.features[feature] === false){
|
return $rootScope.features[feature] || false;
|
||||||
return false;
|
|
||||||
} else {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
}];
|
}];
|
||||||
|
|||||||
Reference in New Issue
Block a user