mirror of
https://github.com/usatiuk/dhfs.git
synced 2025-10-28 12:37:48 +01:00
Webui: don't show complete address
This commit is contained in:
@@ -16,10 +16,6 @@ export function PeerAvailableCard({ peerInfo }: TPeerAvailableCardProps) {
|
||||
<span>UUID: </span>
|
||||
<span>{peerInfo.uuid}</span>
|
||||
</div>
|
||||
<div>
|
||||
<span>Address: </span>
|
||||
<span>{peerInfo.knownAddress}</span>
|
||||
</div>
|
||||
</div>
|
||||
<fetcher.Form
|
||||
className="actions"
|
||||
|
||||
@@ -27,16 +27,15 @@ export function PeerKnownCard({ peerInfo }: TPeerKnownCardProps) {
|
||||
<span>{peerInfo.uuid}</span>
|
||||
</div>
|
||||
<div>
|
||||
<span>Address: </span>
|
||||
<span>{peerInfo.knownAddress || "not connected"}</span>
|
||||
<span>{peerInfo.knownAddress ? "connected" : "not connected"}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<fetcher.Form
|
||||
className="actions"
|
||||
method="put"
|
||||
action={"/home/peers"}
|
||||
>
|
||||
<span>Manual address: </span>
|
||||
<input
|
||||
name="intent"
|
||||
hidden={true}
|
||||
@@ -50,6 +49,7 @@ export function PeerKnownCard({ peerInfo }: TPeerKnownCardProps) {
|
||||
<input
|
||||
name="address"
|
||||
defaultValue={addr?.address || ""}
|
||||
placeholder={"ip:port:secure port"}
|
||||
/>
|
||||
<button type="submit">save</button>
|
||||
</fetcher.Form>
|
||||
|
||||
@@ -40,6 +40,8 @@
|
||||
color: inherit;
|
||||
font-size: inherit;
|
||||
|
||||
padding: 0.5rem;
|
||||
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user