Merge pull request #1870 from coreos-inc/fix-plans-angular-bug

Fix Angular bug on plans page when using back button
This commit is contained in:
josephschorr 2016-09-23 15:41:12 -04:00 committed by GitHub
commit 046b543f62

View file

@ -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);
}
};