mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-29 18:20:30 +08:00
Correctly detect custom HTTP API ports
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user