summaryrefslogtreecommitdiff
path: root/web-ui/app/js/services/mail_service.js
diff options
context:
space:
mode:
authorDuda Dornelles <ddornell@thoughtworks.com>2014-10-16 17:08:55 +0200
committerDuda Dornelles <ddornell@thoughtworks.com>2014-10-16 17:09:06 +0200
commita8f3d31bd41def7a334b5a2f4f260ec77ce76d2c (patch)
treefbabfffc7d1433add643822ad3b4faf637d3d337 /web-ui/app/js/services/mail_service.js
parent5a0425986800bf03de8c49dc00f45d86d3b365ee (diff)
Making sure only the tags are shown in the mail when you update the mail
tags. Also, disabling the tags feature toggles
Diffstat (limited to 'web-ui/app/js/services/mail_service.js')
-rw-r--r--web-ui/app/js/services/mail_service.js7
1 files changed, 2 insertions, 5 deletions
diff --git a/web-ui/app/js/services/mail_service.js b/web-ui/app/js/services/mail_service.js
index b773bd8b..af957a7b 100644
--- a/web-ui/app/js/services/mail_service.js
+++ b/web-ui/app/js/services/mail_service.js
@@ -58,7 +58,7 @@ define(
data: JSON.stringify({newtags: data.tags})
}).done(function (data) {
that.refreshResults();
- $(document).trigger(events.mail.tags.updated, { ident: ident, tags: data });
+ $(document).trigger(events.mail.tags.updated, { ident: ident, tags: data.tags });
})
.fail(function (resp) {
var msg = i18n('Could not update mail tags');
@@ -263,10 +263,7 @@ define(
this.after('initialize', function () {
that = this;
- if (features.isEnabled('tags')) {
- this.on(events.mail.tags.update, this.updateTags);
- }
-
+ this.on(events.mail.tags.update, this.updateTags);
this.on(events.mail.draftReply.want, this.wantDraftReplyForMail);
this.on(events.mail.want, this.fetchSingle);
this.on(events.mail.read, this.readMail);