diff options
author | Julius Haertl <jus@bitgrid.net> | 2016-07-16 14:54:26 +0200 |
---|---|---|
committer | Julius Haertl <jus@bitgrid.net> | 2016-07-25 21:14:02 +0200 |
commit | 35160f520fdd04bfbd9553dc7b33992034288586 (patch) | |
tree | f3b6eadc60ba917b4308544830aba0487c6e1653 /js | |
parent | 1e61b1bba4551ba33d5ea3f44ad0365b779ecd10 (diff) |
Add number of displayed contacts to the bottom of the contact list
Diffstat (limited to 'js')
-rw-r--r-- | js/components/contactList/contactList_controller.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/js/components/contactList/contactList_controller.js b/js/components/contactList/contactList_controller.js index 33f4f786..4688895e 100644 --- a/js/components/contactList/contactList_controller.js +++ b/js/components/contactList/contactList_controller.js @@ -14,6 +14,9 @@ angular.module('contactsApp') emptySearch : t('contacts', 'No search result for {query}', {query: ctrl.searchTerm}) }; + $scope.getCountString = function(contacts) { + return n('contacts', '%n contact', '%n contacts', contacts.length); + }; $scope.query = function(contact) { return contact.matches(SearchService.getSearchTerm()); |