From fd53e3b7868234af328cd73150318fc8e7a26b89 Mon Sep 17 00:00:00 2001 From: Harrison Healey Date: Tue, 17 May 2016 07:21:39 -0400 Subject: PLT-2257 Reorganized System Console (#3003) * Reorganized system console * Fixed the names of some components * Fixed timestamp for BrandImageSetting * Fixed merge issues * Updated push notification settings to match master branch * Removed top level setting pages and moved enable Gitlab/LDAP settings onto their respective pages * Re-added restrictDirectMessage setting to system console * Re-added email connection test and fixed some margins * Fixed ESLint errors * Renamed Authentication > Onboarding to Authentication > Email in the system console * Renamed Customization > Whitelabeling to Customization > Custom Branding in System Console * Re-added EnableOpenServer to system console --- webapp/stores/admin_store.jsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'webapp/stores') diff --git a/webapp/stores/admin_store.jsx b/webapp/stores/admin_store.jsx index ecfbaf85f..b135d9485 100644 --- a/webapp/stores/admin_store.jsx +++ b/webapp/stores/admin_store.jsx @@ -22,7 +22,7 @@ class AdminStoreClass extends EventEmitter { this.logs = null; this.audits = null; this.config = null; - this.teams = null; + this.teams = {}; this.complianceReports = null; } @@ -126,6 +126,10 @@ class AdminStoreClass extends EventEmitter { this.teams = teams; } + getTeam(id) { + return this.teams[id]; + } + getSelectedTeams() { const result = BrowserStore.getItem('seleted_teams'); if (!result) { -- cgit v1.2.3-1-g7c22