|
10 | 10 | *
|
11 | 11 | * SPDX-License-Identifier: EPL-2.0
|
12 | 12 | */
|
13 |
| -import {JSONPath} from 'jsonpath-plus'; |
14 |
| - |
15 | 13 | import * as API from '../api.js';
|
16 | 14 | import * as Utils from '../utils.js';
|
17 |
| -import * as Connections from './connections.js'; |
18 |
| -import { TableFilter } from '../utils/tableFilter.js'; |
19 | 15 | import { FilterType, Term } from '../utils/basicFilters.js';
|
| 16 | +import { TableFilter } from '../utils/tableFilter.js'; |
| 17 | +import * as Connections from './connections.js'; |
20 | 18 | /* eslint-disable prefer-const */
|
21 | 19 | /* eslint-disable max-len */
|
22 | 20 | /* eslint-disable no-invalid-this */
|
@@ -112,7 +110,7 @@ function onEnableConnectionLogsClick() {
|
112 | 110 |
|
113 | 111 | function retrieveConnectionMetrics() {
|
114 | 112 | Utils.assert(selectedConnectionId, 'Please select a connection', dom.tableValidationConnections);
|
115 |
| - dom.tbodyConnectionMetrics.innerHTML = ''; |
| 113 | + dom.tbodyConnectionMetrics.textContent = ''; |
116 | 114 | API.callConnectionsAPI('retrieveConnectionMetrics', (response) => {
|
117 | 115 | if (response.connectionMetrics) {
|
118 | 116 | Object.keys(response.connectionMetrics).forEach((direction) => {
|
@@ -154,7 +152,7 @@ function retrieveConnectionLogs() {
|
154 | 152 | }
|
155 | 153 |
|
156 | 154 | function fillConnectionLogsTable() {
|
157 |
| - dom.tbodyConnectionLogs.innerHTML = ''; |
| 155 | + dom.tbodyConnectionLogs.textContent = ''; |
158 | 156 | connectionLogDetail.setValue('');
|
159 | 157 |
|
160 | 158 | filteredLogs = dom.tableFilterConnectionLogs.filterItems(connectionLogs);
|
@@ -188,8 +186,8 @@ function onConnectionChange(connection, isNewConnection = true) {
|
188 | 186 | selectedConnectionId = connection ? connection.id : null;
|
189 | 187 | connectionStatusDetail.setValue('');
|
190 | 188 | connectionLogDetail.setValue('');
|
191 |
| - dom.tbodyConnectionMetrics.innerHTML = ''; |
192 |
| - dom.tbodyConnectionLogs.innerHTML = ''; |
| 189 | + dom.tbodyConnectionMetrics.textContent = ''; |
| 190 | + dom.tbodyConnectionLogs.textContent = ''; |
193 | 191 | if (!isNewConnection && connection && connection.id) {
|
194 | 192 | retrieveConnectionLogs();
|
195 | 193 | }
|
|
0 commit comments