Correctly detect custom HTTP API ports

Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
This commit is contained in:
Rūdolfs Ošiņš
2022-11-03 09:37:27 +01:00
parent c757f8df8b
commit d885b4076d
9 changed files with 59 additions and 18 deletions
+9 -1
View File
@@ -36,6 +36,14 @@
const updateRevision = (revision: string) => {
project.navigateTo({ revision });
};
function goToSeed() {
if (seed.api.port) {
navigate(`/seeds/${seed.api.host}:${seed.api.port}`);
} else {
navigate(`/seeds/${seed.api.host}`);
}
}
</script>
<style>
@@ -110,7 +118,7 @@
<div
class="stat seed clickable widget"
title="Project data is fetched from this seed"
on:click={() => navigate(`/seeds/${seed.api.host}`)}>
on:click={goToSeed}>
<span>{seed.api.host}</span>
</div>
{/if}