Skip to content

Commit

Permalink
#185 - also: display expired categories if there is at least one of t…
Browse files Browse the repository at this point in the history
…hem which contains orphans tickets
  • Loading branch information
cbellone committed Jan 24, 2018
1 parent 669519b commit 5be7623
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/main/webapp/resources/js/admin/ng-app/admin-application.js
Original file line number Diff line number Diff line change
Expand Up @@ -704,6 +704,11 @@
$scope.baseUrl = window.location.origin;
loadData().then(function() {
initScopeForEventEditing($scope, OrganizationService, PaymentProxyService, LocationService, EventService, $state, PAYMENT_PROXY_DESCRIPTIONS);
$scope.selection = {
active: true,
expired: $scope.event.ticketCategories.filter(function(tc) { return tc.containingOrphans; }).length > 0,
freeText: ''
};
});
$scope.allocationStrategyRadioClass = 'radio';
$scope.evaluateCategoryStatusClass = function(index, category) {
Expand All @@ -712,7 +717,7 @@
}
return 'category-' + $rootScope.evaluateBarType(index);
};

$scope.evaluateClass = function(token) {
switch(token.status) {
case 'WAITING':
Expand All @@ -726,11 +731,6 @@
}
};

$scope.selection = {
active: true,
expired: false,
freeText: ''
};

$scope.getActualCapacity = function(category, event) {
return category.bounded ? category.maxTickets : (event.dynamicAllocation + category.checkedInTickets + category.soldTickets);
Expand Down

0 comments on commit 5be7623

Please sign in to comment.