diff --git a/static/js/directives/ui/plans-display.js b/static/js/directives/ui/plans-display.js index 3a79579c8..6a9bf42ce 100644 --- a/static/js/directives/ui/plans-display.js +++ b/static/js/directives/ui/plans-display.js @@ -11,7 +11,7 @@ angular.module('quay').directive('plansDisplay', function () { restrict: 'C', scope: { }, - controller: function($scope, $element, $routeParams, UserService, PlanService, UIService) { + controller: function($scope, $element, $routeParams, $timeout, UserService, PlanService, UIService) { // Monitor any user changes and place the current user into the scope. UserService.updateUserIn($scope); @@ -33,7 +33,9 @@ angular.module('quay').directive('plansDisplay', function () { if ($scope.user && !$scope.user.anonymous) { PlanService.handleNotedPlan(); } else { - $('#signinModal').modal({}); + $timeout(function() { + $('#signinModal').modal({}); + }, 0); } };