From 9e98058290c409e0cf841051eef9fe9f055668df Mon Sep 17 00:00:00 2001 From: mabashian Date: Wed, 10 Apr 2019 15:56:19 -0400 Subject: [PATCH] Check to make sure the activity stream button should be shown after refresh --- awx/ui/client/src/bread-crumb/bread-crumb.directive.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/ui/client/src/bread-crumb/bread-crumb.directive.js b/awx/ui/client/src/bread-crumb/bread-crumb.directive.js index 2f528e1620..1bb9255f02 100644 --- a/awx/ui/client/src/bread-crumb/bread-crumb.directive.js +++ b/awx/ui/client/src/bread-crumb/bread-crumb.directive.js @@ -59,7 +59,7 @@ export default scope.loadingLicense = false; scope.activityStreamActive = ($state.current.name === 'activityStream') ? true : false; scope.activityStreamTooltip = ($state.current.name === 'activityStream') ? 'Hide Activity Stream' : 'View Activity Stream'; - scope.showActivityStreamButton = (FeaturesService.featureEnabled('activity_streams') || $state.current.name ==='activityStream') ? true : false; + scope.showActivityStreamButton = ((FeaturesService.featureEnabled('activity_streams') && streamConfig && streamConfig.activityStream) || $state.current.name ==='activityStream') ? true : false; } });