diff options
author | skjnldsv <fremulon@protonmail.com> | 2016-04-10 10:23:56 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2016-04-10 21:20:22 +0200 |
commit | dcf95a5362eefb6f00409f3cd90a197f6a7d18f5 (patch) | |
tree | cfb9ae342760f9f7c0e286cae934d68e75a26ac8 /js | |
parent | 8ae33decfe7e0709bab8902b7605fe5ab1a0cd42 (diff) |
New contact string if no fullName
Diffstat (limited to 'js')
-rw-r--r-- | js/filters/newContact_filter.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/js/filters/newContact_filter.js b/js/filters/newContact_filter.js new file mode 100644 index 00000000..80b63485 --- /dev/null +++ b/js/filters/newContact_filter.js @@ -0,0 +1,6 @@ +angular.module('contactsApp') +.filter('newContact', function() { + return function(input) { + return input !== '' ? input : t('contacts', 'New contact'); + }; +}); |