summaryrefslogtreecommitdiff
path: root/web-ui/app/js/mail_view/ui
diff options
context:
space:
mode:
authorThiago Colucci and Patrick Maia <pixelated-team+colucci+patrick@thoughtworks.com>2014-08-08 16:23:07 -0300
committerPatrick Maia <patrickjourdanmaia@gmail.com>2014-08-08 16:23:07 -0300
commit94c10687d493885680c89299a2e948e897fe6979 (patch)
treee8b4ce744ee4f4ede35c095c82b77a1db9d6b5ae /web-ui/app/js/mail_view/ui
parent6da512032af12aa58793741ba5bb4485a346ff10 (diff)
adds contacts feature toggle
Diffstat (limited to 'web-ui/app/js/mail_view/ui')
-rw-r--r--web-ui/app/js/mail_view/ui/recipients/recipients_input.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/web-ui/app/js/mail_view/ui/recipients/recipients_input.js b/web-ui/app/js/mail_view/ui/recipients/recipients_input.js
index 79780ad2..9ecdbebe 100644
--- a/web-ui/app/js/mail_view/ui/recipients/recipients_input.js
+++ b/web-ui/app/js/mail_view/ui/recipients/recipients_input.js
@@ -4,9 +4,10 @@
define([
'flight/lib/component',
- 'page/events'
+ 'page/events',
+ 'features'
],
- function (defineComponent, events) {
+ function (defineComponent, events, features) {
function recipientsInput() {
var EXIT_KEY_CODE_MAP = {
@@ -54,7 +55,9 @@ define([
filter: extractContactNames
}
});
- emailCompleter.initialize();
+ if(features.isEnabled('contacts')) {
+ emailCompleter.initialize();
+ }
return emailCompleter;
}