mirror of
https://github.com/usatiuk/dhfs.git
synced 2025-10-29 04:57: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>UUID: </span>
|
||||||
<span>{peerInfo.uuid}</span>
|
<span>{peerInfo.uuid}</span>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
|
||||||
<span>Address: </span>
|
|
||||||
<span>{peerInfo.knownAddress}</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<fetcher.Form
|
<fetcher.Form
|
||||||
className="actions"
|
className="actions"
|
||||||
|
|||||||
@@ -27,16 +27,15 @@ export function PeerKnownCard({ peerInfo }: TPeerKnownCardProps) {
|
|||||||
<span>{peerInfo.uuid}</span>
|
<span>{peerInfo.uuid}</span>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<span>Address: </span>
|
<span>{peerInfo.knownAddress ? "connected" : "not connected"}</span>
|
||||||
<span>{peerInfo.knownAddress || "not connected"}</span>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<fetcher.Form
|
<fetcher.Form
|
||||||
className="actions"
|
|
||||||
method="put"
|
method="put"
|
||||||
action={"/home/peers"}
|
action={"/home/peers"}
|
||||||
>
|
>
|
||||||
|
<span>Manual address: </span>
|
||||||
<input
|
<input
|
||||||
name="intent"
|
name="intent"
|
||||||
hidden={true}
|
hidden={true}
|
||||||
@@ -50,6 +49,7 @@ export function PeerKnownCard({ peerInfo }: TPeerKnownCardProps) {
|
|||||||
<input
|
<input
|
||||||
name="address"
|
name="address"
|
||||||
defaultValue={addr?.address || ""}
|
defaultValue={addr?.address || ""}
|
||||||
|
placeholder={"ip:port:secure port"}
|
||||||
/>
|
/>
|
||||||
<button type="submit">save</button>
|
<button type="submit">save</button>
|
||||||
</fetcher.Form>
|
</fetcher.Form>
|
||||||
|
|||||||
@@ -40,6 +40,8 @@
|
|||||||
color: inherit;
|
color: inherit;
|
||||||
font-size: inherit;
|
font-size: inherit;
|
||||||
|
|
||||||
|
padding: 0.5rem;
|
||||||
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user