summaryrefslogtreecommitdiffstats
path: root/webapp/components/admin_console/configuration_settings.jsx
diff options
context:
space:
mode:
authorHarrison Healey <harrisonmhealey@gmail.com>2017-04-25 12:39:08 -0400
committerCorey Hulen <corey@hulen.com>2017-04-25 09:39:08 -0700
commit7fc663ca75e966847243a845cff31c07737c4492 (patch)
treef70c33a2bebae66c7eb0f608d509cf0cf4857177 /webapp/components/admin_console/configuration_settings.jsx
parent8d1a132eda861f3e491a406233b726ff953cdffd (diff)
downloadchat-7fc663ca75e966847243a845cff31c07737c4492.tar.gz
chat-7fc663ca75e966847243a845cff31c07737c4492.tar.bz2
chat-7fc663ca75e966847243a845cff31c07737c4492.zip
PLT-6283 Hide Preview Mode error bar after enabling email notifications (#6180)
Diffstat (limited to 'webapp/components/admin_console/configuration_settings.jsx')
-rw-r--r--webapp/components/admin_console/configuration_settings.jsx7
1 files changed, 3 insertions, 4 deletions
diff --git a/webapp/components/admin_console/configuration_settings.jsx b/webapp/components/admin_console/configuration_settings.jsx
index 47d3a665e..29901ad90 100644
--- a/webapp/components/admin_console/configuration_settings.jsx
+++ b/webapp/components/admin_console/configuration_settings.jsx
@@ -6,6 +6,7 @@ import {FormattedMessage} from 'react-intl';
import ErrorStore from 'stores/error_store.jsx';
+import {ErrorBarTypes} from 'utils/constants.jsx';
import * as Utils from 'utils/utils.jsx';
import AdminSettings from './admin_settings.jsx';
@@ -67,10 +68,8 @@ export default class ConfigurationSettings extends AdminSettings {
}
handleSaved(newConfig) {
- const lastError = ErrorStore.getLastError();
-
- if (lastError && lastError.message === 'error_bar.site_url' && newConfig.ServiceSettings.SiteURL) {
- ErrorStore.clearLastError(true);
+ if (newConfig.ServiceSettings.SiteURL) {
+ ErrorStore.clearError(ErrorBarTypes.SITE_URL);
}
}