Only show tor badge in node page if actually running on tor only

This commit is contained in:
nymkappa
2022-09-22 18:35:16 +02:00
parent 4db4f405ba
commit cc372dca7e
2 changed files with 9 additions and 1 deletions

View File

@@ -85,9 +85,12 @@
{{ node.as_organization }} [ASN {{node.as_number}}]
</a>
</td>
<td *ngIf="!node.as_number">
<td *ngIf="clearnetSocketCount === 0 && torSocketCount > 0">
<span class="badge badge-success" placement="bottom" i18n="tor">Exclusively on Tor</span>
</td>
<td *ngIf="node.sockets.length === 0">
<span i18n="unknown">Unknown</span>
</td>
</tr>
</tbody>
</table>