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:
commit
046b543f62
1 changed files with 4 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Reference in a new issue