From 155c6600aa2f7e9e23aa4117326fbbd5fd441da3 Mon Sep 17 00:00:00 2001
From: Carlos Tadeu Panato Junior <ctadeu@gmail.com>
Date: Wed, 28 Jun 2017 07:38:57 +0200
Subject: [PLT-6599] Add link to check Websocket port error message (#6743)

---
 webapp/components/announcement_bar/announcement_bar.jsx | 7 +++++++
 1 file changed, 7 insertions(+)

(limited to 'webapp/components/announcement_bar/announcement_bar.jsx')

diff --git a/webapp/components/announcement_bar/announcement_bar.jsx b/webapp/components/announcement_bar/announcement_bar.jsx
index 5d64d4d0f..0e731fd7c 100644
--- a/webapp/components/announcement_bar/announcement_bar.jsx
+++ b/webapp/components/announcement_bar/announcement_bar.jsx
@@ -254,6 +254,13 @@ export default class AnnouncementBar extends React.PureComponent {
                     defaultMessage='Enterprise license is expired and some features may be disabled. Please contact your System Administrator for details.'
                 />
             );
+        } else if (message === ErrorBarTypes.WEBSOCKET_PORT_ERROR) {
+            message = (
+                <FormattedHTMLMessage
+                    id={ErrorBarTypes.WEBSOCKET_PORT_ERROR}
+                    defaultMessage='Please check connection, Mattermost unreachable. If issue persists, ask administrator to <a href="https://about.mattermost.com/default-websocket-port-help" target="_blank">check WebSocket port</a>.'
+                />
+            );
         } else if (message === ErrorBarTypes.SITE_URL) {
             let id;
             let defaultMessage;
-- 
cgit v1.2.3-1-g7c22

