show unregistered persons only if a filter is present

This commit is contained in:
Davide Alberani 2017-04-02 09:22:41 +02:00
parent ac8cdc24b4
commit a9b120290c

View file

@ -90,7 +90,7 @@
</tr>
</thead>
<tbody>
<tr ng-repeat="person in allPersons | splittedFilter:query | personRegistered:{event: event, present: false}">
<tr ng-repeat="person in (query ? allPersons : []) | splittedFilter:query | personRegistered:{event: event, present: false}">
<td>
<strong>{{person.name}} {{person.surname}}</strong>
<br />