summaryrefslogtreecommitdiffstats
path: root/webapp/stores/admin_store.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/stores/admin_store.jsx')
-rw-r--r--webapp/stores/admin_store.jsx10
1 files changed, 10 insertions, 0 deletions
diff --git a/webapp/stores/admin_store.jsx b/webapp/stores/admin_store.jsx
index b135d9485..3be89c10b 100644
--- a/webapp/stores/admin_store.jsx
+++ b/webapp/stores/admin_store.jsx
@@ -22,6 +22,7 @@ class AdminStoreClass extends EventEmitter {
this.logs = null;
this.audits = null;
this.config = null;
+ this.clusterId = null;
this.teams = {};
this.complianceReports = null;
}
@@ -86,6 +87,14 @@ class AdminStoreClass extends EventEmitter {
this.removeListener(ALL_TEAMS_EVENT, callback);
}
+ getClusterId() {
+ return this.clusterId;
+ }
+
+ saveClusterId(clusterId) {
+ this.clusterId = clusterId;
+ }
+
getLogs() {
return this.logs;
}
@@ -163,6 +172,7 @@ AdminStoreClass.dispatchToken = AppDispatcher.register((payload) => {
break;
case ActionTypes.RECEIVED_CONFIG:
AdminStore.saveConfig(action.config);
+ AdminStore.saveClusterId(action.clusterId);
AdminStore.emitConfigChange();
break;
case ActionTypes.RECEIVED_ALL_TEAMS: