summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2017-09-15 16:58:21 +0200
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2017-09-15 16:58:21 +0200
commit24eb555926e6d75d195dd780e774e1ea1a006683 (patch)
treee9d5743238e290bc38b0813f54888d036a9b1f74 /templates
parentc068b0d261499d2a3aed3e9006e5e2f1a735f8d3 (diff)
Initial fix and understandable var names
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'templates')
-rw-r--r--templates/contactList.html4
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>