mirror of
https://github.com/logos-storage/logos-storage-marketplace-ui.git
synced 2026-01-08 00:13:06 +00:00
Do not block when port forwarding is not enabled
This commit is contained in:
parent
20f5b75a9f
commit
a577db89fa
@ -37,14 +37,10 @@ export function HealthChecks({ online, onStepValid }: Props) {
|
|||||||
|
|
||||||
useEffect(
|
useEffect(
|
||||||
() => {
|
() => {
|
||||||
if (codex.isSuccess) {
|
|
||||||
persistence.refetch();
|
persistence.refetch();
|
||||||
portForwarding.refetch().then(({ data }) => {
|
portForwarding.refetch();
|
||||||
onStepValid(data?.reachable || false);
|
|
||||||
});
|
onStepValid(codex.isSuccess);
|
||||||
} else {
|
|
||||||
onStepValid(false);
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
// We really do not want to add persistence and portForwarding as
|
// We really do not want to add persistence and portForwarding as
|
||||||
// dependencies because it will cause a re-render every time.
|
// dependencies because it will cause a re-render every time.
|
||||||
@ -163,18 +159,6 @@ export function HealthChecks({ online, onStepValid }: Props) {
|
|||||||
</span>
|
</span>
|
||||||
Internet connection
|
Internet connection
|
||||||
</li>
|
</li>
|
||||||
<li>
|
|
||||||
<span>
|
|
||||||
{portForwarding.isFetching ? (
|
|
||||||
<Spinner></Spinner>
|
|
||||||
) : portForwarding.enabled ? (
|
|
||||||
<SuccessCircleIcon></SuccessCircleIcon>
|
|
||||||
) : (
|
|
||||||
<ErrorCircleIcon width={16} />
|
|
||||||
)}
|
|
||||||
</span>
|
|
||||||
Port forwarding
|
|
||||||
</li>
|
|
||||||
<li>
|
<li>
|
||||||
<span>
|
<span>
|
||||||
{codex.isFetching ? (
|
{codex.isFetching ? (
|
||||||
@ -187,6 +171,18 @@ export function HealthChecks({ online, onStepValid }: Props) {
|
|||||||
</span>
|
</span>
|
||||||
Codex connection
|
Codex connection
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<span>
|
||||||
|
{portForwarding.isFetching ? (
|
||||||
|
<Spinner></Spinner>
|
||||||
|
) : portForwarding.enabled ? (
|
||||||
|
<SuccessCircleIcon></SuccessCircleIcon>
|
||||||
|
) : (
|
||||||
|
<WarningIcon width={16} />
|
||||||
|
)}
|
||||||
|
</span>
|
||||||
|
Port forwarding
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<span>
|
<span>
|
||||||
{persistence.isFetching ? (
|
{persistence.isFetching ? (
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user