update org cards count when dataset chnages

This commit is contained in:
John Mitchell
2018-11-30 15:54:15 -05:00
parent e70055a333
commit 1317572979

View File

@@ -114,6 +114,7 @@ export default ['$stateParams', '$scope', '$rootScope',
$scope.$watchCollection(`${list.iterator}_dataset`, function(data) {
$scope[list.name] = data.results;
$scope.orgCards = parseCardData($scope[list.name]);
$scope.orgCount = data.count;
});
$scope.addOrganization = function() {