summaryrefslogtreecommitdiff
path: root/web-ui/app/js/services/model
diff options
context:
space:
mode:
authorDuda Dornelles <ddornell@thoughtworks.com>2014-10-09 10:49:08 +0200
committerDuda Dornelles <ddornell@thoughtworks.com>2014-10-09 10:51:18 +0200
commit21b025f80e8fc4168a9717cf691114a0b5154baf (patch)
treedbf6ec4a3747f2e4291c7c3afc353128bc4aafe8 /web-ui/app/js/services/model
parentba8024b667a4ca16305e3b8c6fe566ba328a488d (diff)
Fixing bug where the send button would get disabled at times even if there were valid receipients
Diffstat (limited to 'web-ui/app/js/services/model')
-rw-r--r--web-ui/app/js/services/model/mail.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/web-ui/app/js/services/model/mail.js b/web-ui/app/js/services/model/mail.js
index 373eb683..9fe2bf44 100644
--- a/web-ui/app/js/services/model/mail.js
+++ b/web-ui/app/js/services/model/mail.js
@@ -23,11 +23,11 @@ define(['helpers/contenttype'],
var asMail = (function () {
function isSentMail() {
- return _.contains(this.tags, 'sent');
+ return this.mailbox == 'SENT';
}
function isDraftMail() {
- return _.contains(this.tags, 'drafts');
+ return this.mailbox == 'DRAFTS';
}
function normalize(recipients) {