From dc991ddffc287263c2b4fd218d43e2f501b181dc Mon Sep 17 00:00:00 2001 From: Duda Dornelles Date: Tue, 14 Oct 2014 18:34:09 +0200 Subject: Adding feature toggle for auto reload so we can disable it in the functional tests --- web-ui/app/js/features/features.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'web-ui/app/js/features') diff --git a/web-ui/app/js/features/features.js b/web-ui/app/js/features/features.js index e008b5fc..1a00658d 100644 --- a/web-ui/app/js/features/features.js +++ b/web-ui/app/js/features/features.js @@ -48,6 +48,9 @@ define([], function() { isEnabled: function (featureName) { return ! _.contains(getDisabledFeatures(), featureName); }, + isAutoRefreshEnabled: function () { + return this.isEnabled('autoRefresh'); + }, isLogoutEnabled: function () { return _.has(getDispatcherFeatures(), 'logout'); }, -- cgit v1.2.3