diff options
author | Duda Dornelles <ddornell@thoughtworks.com> | 2014-10-14 18:34:09 +0200 |
---|---|---|
committer | Duda Dornelles <ddornell@thoughtworks.com> | 2014-10-14 18:34:09 +0200 |
commit | dc991ddffc287263c2b4fd218d43e2f501b181dc (patch) | |
tree | c216a03162eecb63a0a39e02e8103e048ab7afa9 /web-ui/app/js/features/features.js | |
parent | 4ddf0754fad765eb2fd31af710de9ae03f643c8a (diff) |
Adding feature toggle for auto reload so we can disable it in the functional tests
Diffstat (limited to 'web-ui/app/js/features/features.js')
-rw-r--r-- | web-ui/app/js/features/features.js | 3 |
1 files changed, 3 insertions, 0 deletions
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'); }, |