summaryrefslogtreecommitdiff
path: root/web-ui
diff options
context:
space:
mode:
authorNavaL <ayoyo@thoughtworks.com>2016-05-18 18:54:39 +0200
committerNavaL <ayoyo@thoughtworks.com>2016-05-18 18:54:44 +0200
commit021fd399db4801c3d2c96b6f2bace99046d9f54b (patch)
treed56736d4c7609d04d95a3552d833c0bbee60d7cd /web-ui
parent804213b24bad0cc222c98888d8ddac356252465c (diff)
Issue #692 re-added logout back in the feature toggle
Diffstat (limited to 'web-ui')
-rw-r--r--web-ui/app/js/features/features.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/web-ui/app/js/features/features.js b/web-ui/app/js/features/features.js
index 80ecc225..f71d56ea 100644
--- a/web-ui/app/js/features/features.js
+++ b/web-ui/app/js/features/features.js
@@ -18,16 +18,16 @@
define(['helpers/monitored_ajax'], function(monitoredAjax) {
'use strict';
var cachedDisabledFeatures;
- var cachedDispatcherFeatures;
+ var cachedMultiUserFeatures;
function getDisabledFeatures() {
cachedDisabledFeatures = cachedDisabledFeatures || fetchFeatures().disabled_features;
return cachedDisabledFeatures;
}
- function getDispatcherFeatures() {
- cachedDispatcherFeatures = cachedDispatcherFeatures || fetchFeatures().dispatcher_features;
- return cachedDispatcherFeatures;
+ function getMultiUserFeatures() {
+ cachedMultiUserFeatures = cachedMultiUserFeatures || fetchFeatures().multi_user;
+ return cachedMultiUserFeatures;
}
function fetchFeatures() {
@@ -52,10 +52,10 @@ define(['helpers/monitored_ajax'], function(monitoredAjax) {
return this.isEnabled('autoRefresh');
},
isLogoutEnabled: function () {
- return _.has(getDispatcherFeatures(), 'logout');
+ return _.has(getMultiUserFeatures(), 'logout');
},
getLogoutUrl: function () {
- return getDispatcherFeatures().logout;
+ return getMultiUserFeatures().logout;
}
};
});