Skip to content

Commit

Permalink
Add group filter to print
Browse files Browse the repository at this point in the history
  • Loading branch information
fabian committed Mar 22, 2022
1 parent 77da647 commit d2943c9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/scripts/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ angular
}
})
.state('print', {
url: '/events/{eventId}/print/?accreditationId&name&position&member&skill&printed&photo&delegateTypes',
url: '/events/{eventId}/print/?accreditationId&name&position&member&skill&printed&photo&delegateTypes&group',
templateUrl: 'views/print.html',
controller: 'PrintCtrl',
data: {
Expand Down
3 changes: 3 additions & 0 deletions app/scripts/controllers/print.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ angular.module('accreditationApp')
skill: $stateParams.skill, del_types: $stateParams.delegateTypes,
limit: $scope.limit
};
if ($stateParams.group) {
query['group'] = $stateParams.group;
}
if ($stateParams.printed !== undefined) {
query['printed'] = $stateParams.printed;
}
Expand Down

0 comments on commit d2943c9

Please sign in to comment.