Umbau broekr auf client-id
This commit is contained in:
1 parent
268e150f2b
commit
a95204b8d6
17 files changed
+649
-388
No files matched your search
@@ -14,7 +14,7 @@ async function loadBrokerStatus() {
|
||||
if (!data.connections || data.connections.length === 0) {
|
||||
const row = document.createElement('tr');
|
||||
const cell = document.createElement('td');
|
||||
cell.colSpan = 4;
|
||||
cell.colSpan = 5;
|
||||
cell.textContent = 'Keine aktiven Verbindungen';
|
||||
row.appendChild(cell);
|
||||
body.appendChild(row);
|
||||
@@ -22,6 +22,9 @@ async function loadBrokerStatus() {
|
||||
}
|
||||
for (const conn of data.connections) {
|
||||
const row = document.createElement('tr');
|
||||
const tdClient = document.createElement('td');
|
||||
tdClient.textContent = conn.client_id || '-';
|
||||
tdClient.title = conn.client_id || '';
|
||||
const tdId = document.createElement('td');
|
||||
tdId.textContent = conn.account_id;
|
||||
const tdName = document.createElement('td');
|
||||
@@ -36,13 +39,13 @@ async function loadBrokerStatus() {
|
||||
} else {
|
||||
tdGroup.textContent = '-';
|
||||
}
|
||||
row.append(tdId, tdName, tdRole, tdGroup);
|
||||
row.append(tdClient, tdId, tdName, tdRole, tdGroup);
|
||||
body.appendChild(row);
|
||||
}
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
const body = document.getElementById('brokerStatusBody');
|
||||
body.innerHTML = '<tr><td colspan="4">Fehler beim Laden</td></tr>';
|
||||
body.innerHTML = '<tr><td colspan="5">Fehler beim Laden</td></tr>';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user