summaryrefslogtreecommitdiff
path: root/web-ui
diff options
context:
space:
mode:
authorThiago Colucci and Patrick Maia <pixelated-team+colucci+patrick@thoughtworks.com>2014-08-08 17:08:41 -0300
committerPatrick Maia <patrickjourdanmaia@gmail.com>2014-08-08 17:08:41 -0300
commitf22a6a32e901f52b2b3f2b3fd8625c43302ff001 (patch)
tree39c0d39c163f0f287e5b7b3a5612b6bb16e06ecf /web-ui
parent71d49858f9c5e6e4e7ea86d137f0c8300456382e (diff)
Triggers ui:mails:refresh event even when the tags component is toggled off. This is necessary to make sure mails are fetched when the app is loaded.
Diffstat (limited to 'web-ui')
-rw-r--r--web-ui/app/js/tags/data/tags.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/web-ui/app/js/tags/data/tags.js b/web-ui/app/js/tags/data/tags.js
index dba5c26f..fc8976c7 100644
--- a/web-ui/app/js/tags/data/tags.js
+++ b/web-ui/app/js/tags/data/tags.js
@@ -1,7 +1,9 @@
define(['flight/lib/component', 'page/events', 'mixins/with_feature_toggle'], function (defineComponent, events, withFeatureToggle) {
'use strict';
- var DataTags = defineComponent(dataTags, withFeatureToggle('tags'));
+ var DataTags = defineComponent(dataTags, withFeatureToggle('tags', function() {
+ $(document).trigger(events.ui.mails.refresh);
+ }));
DataTags.all = {
name: 'all',