From 48d211c56b718f8a654b443c2eeef1c8237a6264 Mon Sep 17 00:00:00 2001 From: Jared Tabor Date: Tue, 5 May 2015 17:08:26 -0400 Subject: [PATCH] adjusting the awFeature controller to return true when a awFeature string is not provided --- awx/ui/static/js/shared/features/features.controller.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/awx/ui/static/js/shared/features/features.controller.js b/awx/ui/static/js/shared/features/features.controller.js index ad15be4771..78ff9ec270 100644 --- a/awx/ui/static/js/shared/features/features.controller.js +++ b/awx/ui/static/js/shared/features/features.controller.js @@ -1,10 +1,6 @@ export default ['$rootScope', function ($rootScope) { this.isFeatureEnabled = function(feature){ - if($rootScope.features[feature] === false){ - return false; - } else { - return true; - } + return $rootScope.features[feature] || false; }; }];