|
@@ -4,7 +4,8 @@ import {
|
|
|
initMarshaller,
|
|
initMarshaller,
|
|
|
setupSectionNavigation,
|
|
setupSectionNavigation,
|
|
|
marshalDashboardComponentsJsonToHtml,
|
|
marshalDashboardComponentsJsonToHtml,
|
|
|
- marshalLogsJsonToHtml
|
|
|
|
|
|
|
+ marshalLogsJsonToHtml,
|
|
|
|
|
+ refreshServerConnectionLabel
|
|
|
} from './js/marshaller.js'
|
|
} from './js/marshaller.js'
|
|
|
import { checkWebsocketConnection } from './js/websocket.js'
|
|
import { checkWebsocketConnection } from './js/websocket.js'
|
|
|
|
|
|
|
@@ -52,20 +53,6 @@ function refreshLoop () {
|
|
|
refreshServerConnectionLabel()
|
|
refreshServerConnectionLabel()
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-function refreshServerConnectionLabel () {
|
|
|
|
|
- if (window.restAvailable) {
|
|
|
|
|
- document.querySelector('#serverConnectionRest').classList.remove('error')
|
|
|
|
|
- } else {
|
|
|
|
|
- document.querySelector('#serverConnectionRest').classList.add('error')
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- if (window.websocketAvailable) {
|
|
|
|
|
- document.querySelector('#serverConnectionWebSocket').classList.remove('error')
|
|
|
|
|
- } else {
|
|
|
|
|
- document.querySelector('#serverConnectionWebSocket').classList.add('error')
|
|
|
|
|
- }
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
function fetchGetDashboardComponents () {
|
|
function fetchGetDashboardComponents () {
|
|
|
window.fetch(window.restBaseUrl + 'GetDashboardComponents', {
|
|
window.fetch(window.restBaseUrl + 'GetDashboardComponents', {
|
|
|
cors: 'cors'
|
|
cors: 'cors'
|