Fix status generation for remote groups.

This commit is contained in:
Juliusz Chroboczek
2022-09-16 20:45:54 +02:00
parent 4f83de3335
commit bf142c41a0
2 changed files with 18 additions and 4 deletions
+6 -2
View File
@@ -119,8 +119,12 @@ async function listPublicGroups() {
td2.textContent = group.description;
tr.appendChild(td2);
let td3 = document.createElement('td');
let locked = group.locked ? ', locked' : '';
td3.textContent = `(${group.clientCount} clients${locked})`;
if(!group.redirect) {
let locked = group.locked ? ', locked' : '';
td3.textContent = `(${group.clientCount} clients${locked})`;
} else {
td3.textContent = '(remote)';
}
tr.appendChild(td3);
table.appendChild(tr);
}