From 6da512032af12aa58793741ba5bb4485a346ff10 Mon Sep 17 00:00:00 2001 From: Patrick Maia Date: Fri, 8 Aug 2014 15:19:09 -0300 Subject: adds signatureStatus, encryptionStatus, tags feature toggles --- web-ui/app/js/services/mail_service.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'web-ui/app/js/services') 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); -- cgit v1.2.3