summaryrefslogtreecommitdiffstats
path: root/webapp/stores
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/stores
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/stores')
-rw-r--r--webapp/stores/error_store.jsx8
1 files changed, 8 insertions, 0 deletions
diff --git a/webapp/stores/error_store.jsx b/webapp/stores/error_store.jsx
index b72c45ed4..38f5eb249 100644
--- a/webapp/stores/error_store.jsx
+++ b/webapp/stores/error_store.jsx
@@ -62,6 +62,14 @@ class ErrorStoreClass extends EventEmitter {
BrowserStore.setGlobalItem('last_error_conn', count);
}
+ clearError(message) {
+ const lastError = this.getLastError();
+
+ if (lastError && lastError.message === message) {
+ this.clearLastError(true);
+ }
+ }
+
clearLastError(force) {
var lastError = this.getLastError();