summaryrefslogtreecommitdiffstats
path: root/webapp/components
diff options
context:
space:
mode:
authorHarrison Healey <harrisonmhealey@gmail.com>2016-06-24 08:22:44 -0400
committerChristopher Speller <crspeller@gmail.com>2016-06-24 08:22:44 -0400
commitae1851e63383f62f4fab7e1a62e7e903bbd5a30c (patch)
treeb5c813a1d2b5772982ffdd198cbdfca974ec60d8 /webapp/components
parent994d73be6ff81a3a25cae035187f90e27545b7a7 (diff)
downloadchat-ae1851e63383f62f4fab7e1a62e7e903bbd5a30c.tar.gz
chat-ae1851e63383f62f4fab7e1a62e7e903bbd5a30c.tar.bz2
chat-ae1851e63383f62f4fab7e1a62e7e903bbd5a30c.zip
Fixed enabling compliance settings in the system console without reload (#3401)
Diffstat (limited to 'webapp/components')
-rw-r--r--webapp/components/admin_console/compliance_reports.jsx5
1 files changed, 3 insertions, 2 deletions
diff --git a/webapp/components/admin_console/compliance_reports.jsx b/webapp/components/admin_console/compliance_reports.jsx
index a93f7a17c..9bde450ff 100644
--- a/webapp/components/admin_console/compliance_reports.jsx
+++ b/webapp/components/admin_console/compliance_reports.jsx
@@ -25,6 +25,7 @@ export default class ComplianceReports extends React.Component {
this.getDateTime = this.getDateTime.bind(this);
this.state = {
+ enabled: AdminStore.getConfig().ComplianceSettings.Enable,
reports: AdminStore.getComplianceReports(),
serverError: null
};
@@ -33,7 +34,7 @@ export default class ComplianceReports extends React.Component {
componentDidMount() {
AdminStore.addComplianceReportsChangeListener(this.onComplianceReportsListenerChange);
- if (global.window.mm_license.IsLicensed !== 'true' || global.window.mm_config.EnableCompliance !== 'true') {
+ if (global.window.mm_license.IsLicensed !== 'true' || !this.state.enabled) {
return;
}
@@ -112,7 +113,7 @@ export default class ComplianceReports extends React.Component {
render() {
var content = null;
- if (global.window.mm_license.IsLicensed !== 'true' || global.window.mm_config.EnableCompliance !== 'true') {
+ if (global.window.mm_license.IsLicensed !== 'true' || !this.state.enabled) {
return <div/>;
}