Files
awx/awx/ui/static/js/help/SafariSocketHelp.js
2015-02-06 12:47:39 -05:00

53 lines
2.7 KiB
JavaScript

/*********************************************
* Copyright (c) 2014 AnsibleWorks, Inc.
*
* SafairSocketHelp.js
*
* Help object for socket connection troubleshooting
*
*/
/**
* @ngdoc function
* @name help.function:SafariSocketHelp
* @description This help modal gives instructions on what the user should do if not connected to the web sockets while using Safari. Safari does not support websockets.
*/
angular.module('SafariSocketHelpDefinition', [])
.value('SafariSocketHelp', {
story: {
hdr: 'Live Events',
width: 510,
height: 560,
steps: [{
intro: 'Connection status indicator:',
img: {
src: 'socket_indicator.png',
maxWidth: 360
},
box: "<p><i class=\"fa icon-socket-ok\"></i> indicates live events are streaming and the browser is connected to the live events server.</p><p>If the indicator continually shows <i class=\"fa icon-socket-error\"></i> " +
"or <i class=\"fa icon-socket-connecting\"></i>, then live events are not streaming, and the browser is having difficulty connecting to the live events server. In this case click Next for troubleshooting help.</p>"
}, {
intro: 'Live events connection:',
icon: {
"class": "fa fa-5x fa-rss {{ socketStatus }}-color",
style: "margin-top: 75px;",
containerHeight: 200
},
box: "<p><strong>{{ browserName }}</strong> is connecting to the live events server on port <strong>{{ socketPort }}</strong>. The current connection status is " +
"<i class=\"fa icon-socket-{{ socketStatus }}\"></i> <strong>{{ socketStatus }}</strong>.</p><p>If the connection status indicator is not green, have the " +
"system administrator verify this is the correct port and that access to the port is not blocked by a firewall.</p>"
}, {
intro: 'Self signed certificate:',
icon: {
"class": "fa fa-5x fa-check ok-color",
style: "margin-top: 75px;",
containerHeight: 200
},
box: "<p>Safari will not connect to the live event port when the Tower web server is configured with a self signed certificate. Check with a system administrator to " +
"determine if Tower is using a self signed certificate. Installing a signed certificate will fix the problem.</p>" +
"<p>Switching browsers to either Chrome or Firefox will work as well.</p>"
}]
}
});