diff options
author | Patrick Maia <patrickjourdanmaia@gmail.com> | 2014-08-08 15:19:09 -0300 |
---|---|---|
committer | Patrick Maia <patrickjourdanmaia@gmail.com> | 2014-08-08 15:19:09 -0300 |
commit | 6da512032af12aa58793741ba5bb4485a346ff10 (patch) | |
tree | 5ed8edbc6483e51589026d96e32e84e8db8449db /web-ui/app/js/services | |
parent | 08e622c79a1f128fbafe7a5b2c8001bed18b0c4f (diff) |
adds signatureStatus, encryptionStatus, tags feature toggles
Diffstat (limited to 'web-ui/app/js/services')
-rw-r--r-- | web-ui/app/js/services/mail_service.js | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/web-ui/app/js/services/mail_service.js b/web-ui/app/js/services/mail_service.js index 86642f37..b23d569a 100644 --- a/web-ui/app/js/services/mail_service.js +++ b/web-ui/app/js/services/mail_service.js @@ -6,8 +6,9 @@ define( 'flight/lib/component', 'views/i18n', 'services/model/mail', - 'page/events' - ], function (defineComponent, i18n, Mail, events) { + 'page/events', + 'features' + ], function (defineComponent, i18n, Mail, events, features) { 'use strict'; @@ -238,7 +239,9 @@ define( this.on(events.mail.want, this.fetchSingle); this.on(document, events.mail.read, this.readMail); this.on(document, events.mail.unread, this.unreadMail); - this.on(document, events.mail.tags.update, this.updateTags); + if(features.isEnabled('tags')) { + this.on(document, events.mail.tags.update, this.updateTags); + } this.on(document, events.mail.delete, this.deleteMail); this.on(document, events.mail.deleteMany, this.deleteManyMails); this.on(document, events.search.perform, this.newSearch); |