summaryrefslogtreecommitdiff
path: root/web-ui/app/js/mail_list
diff options
context:
space:
mode:
authorDuda Dornelles <ddornell@thoughtworks.com>2014-10-14 18:34:09 +0200
committerDuda Dornelles <ddornell@thoughtworks.com>2014-10-14 18:34:09 +0200
commitdc991ddffc287263c2b4fd218d43e2f501b181dc (patch)
treec216a03162eecb63a0a39e02e8103e048ab7afa9 /web-ui/app/js/mail_list
parent4ddf0754fad765eb2fd31af710de9ae03f643c8a (diff)
Adding feature toggle for auto reload so we can disable it in the functional tests
Diffstat (limited to 'web-ui/app/js/mail_list')
-rw-r--r--web-ui/app/js/mail_list/domain/refresher.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/web-ui/app/js/mail_list/domain/refresher.js b/web-ui/app/js/mail_list/domain/refresher.js
index 6f3b1c04..38c9cde5 100644
--- a/web-ui/app/js/mail_list/domain/refresher.js
+++ b/web-ui/app/js/mail_list/domain/refresher.js
@@ -14,7 +14,7 @@
* You should have received a copy of the GNU Affero General Public License
* along with Pixelated. If not, see <http://www.gnu.org/licenses/>.
*/
-define(['flight/lib/component', 'page/events'], function(defineComponent, events) {
+define(['flight/lib/component', 'page/events', 'features'], function(defineComponent, events, features) {
'use strict';
return defineComponent(refresher);
@@ -34,7 +34,9 @@ define(['flight/lib/component', 'page/events'], function(defineComponent, events
};
this.after('initialize', function () {
- this.setupRefresher();
+ if (features.isAutoRefreshEnabled()) {
+ this.setupRefresher();
+ }
});
}
}