diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2017-10-27 17:38:54 +0200 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2017-10-27 17:38:54 +0200 |
commit | 427477199fbb95fefa8f9027bd18bb6550669f47 (patch) | |
tree | 5bed247ef8405b54128dc7d346f9823b05120309 /templates | |
parent | 386bb10929c104b3c10b7efccb0ac7bfa1069c00 (diff) |
Simplify sort options by directly passing the key toSortBy priorities
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'templates')
-rw-r--r-- | templates/contactList.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/contactList.html b/templates/contactList.html index 0d7693f3..f5f7da06 100644 --- a/templates/contactList.html +++ b/templates/contactList.html @@ -1,6 +1,6 @@ <div class="contacts-list" ng-class="{loading: ctrl.loading, 'mobile-show': ctrl.show}"> <div class="app-content-list-item" - ng-repeat="contact in ctrl.filteredContacts = (ctrl.contactList | contactGroupFilter:ctrl.routeParams.gid | localeOrderBy: [ctrl.sortBy, 'uid'] | 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()}"> |