diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/contactList.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/contactList.html b/templates/contactList.html index c661fe3a..1cac2f0d 100644 --- a/templates/contactList.html +++ b/templates/contactList.html @@ -1,11 +1,11 @@ <div class="contacts-list" ng-class="{loading: ctrl.loading, 'mobile-show': ctrl.show}"> <div class="app-content-list-item" - ng-repeat="contact in (ctrl.contactList | contactGroupFilter:ctrl.routeParams.gid | localeOrderBy:ctrl.sortBy | filter:query | limitTo:ctrl.limitTo) as filtered track by contact.uid()" + ng-repeat="contact in ctrl.filteredContacts = (ctrl.contactList | contactGroupFilter:ctrl.routeParams.gid | localeOrderBy:ctrl.sortBy | filter:query | limitTo:ctrl.limitTo) as filtered track by contact.uid()" contact data="contact" ng-click="setSelected(contact.uid())" ng-class="{active: contact.uid() === ctrl.getSelectedId()}"> </div> - <div ng-show="!filtered.length && !ctrl.loading && ctrl.searchTerm !== ''"> + <div ng-show="!ctrl.filteredContacts.length && !ctrl.loading && ctrl.searchTerm !== ''"> <div id="emptycontent" class="emptycontent-search"> <div class="icon-search"></div> <h2>{{ctrl.t.emptySearch}}</h2> |