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;
|
$scope.planLoading = true;
|
||||||
loadPlans();
|
loadPlans();
|
||||||
|
|
||||||
$scope.$watch('organization', function(organization) {
|
$scope.$watch('organization', loadPlans);
|
||||||
if ($scope.organization != organization && !$scope.user) {
|
$scope.$watch('user', loadPlans);
|
||||||
loadPlans();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
$scope.$watch('user', function(user) {
|
|
||||||
if ($scope.user != user && !$scope.organization) {
|
|
||||||
loadPlans();
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
return directiveDefinitionObject;
|
return directiveDefinitionObject;
|
||||||
|
|
Reference in a new issue