Fix race condition in the plan manager
This commit is contained in:
parent
56f777448a
commit
ce91190a7e
1 changed files with 2 additions and 11 deletions
|
@ -621,17 +621,8 @@ quayApp.directive('planManager', function () {
|
|||
$scope.planLoading = true;
|
||||
loadPlans();
|
||||
|
||||
$scope.$watch('organization', function(organization) {
|
||||
if ($scope.organization != organization && !$scope.user) {
|
||||
loadPlans();
|
||||
}
|
||||
});
|
||||
|
||||
$scope.$watch('user', function(user) {
|
||||
if ($scope.user != user && !$scope.organization) {
|
||||
loadPlans();
|
||||
}
|
||||
});
|
||||
$scope.$watch('organization', loadPlans);
|
||||
$scope.$watch('user', loadPlans);
|
||||
}
|
||||
};
|
||||
return directiveDefinitionObject;
|
||||
|
|
Reference in a new issue