mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-21 14:20:42 +08:00
Handle custom httpd port
We only supported fetching the default httpd port (8080). This commit removes navigation to `radicle.local` which represents `0.0.0.0:8080`, and prepares the app for defining custom port. Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
import type { Project } from "@httpd-client";
|
||||
import type { ProjectLoadedView } from "@app/views/projects/router";
|
||||
|
||||
import * as httpd from "@app/lib/httpd";
|
||||
import * as router from "@app/lib/router";
|
||||
import * as utils from "@app/lib/utils";
|
||||
import { HttpdClient } from "@httpd-client";
|
||||
@@ -49,8 +50,8 @@
|
||||
void router.push({
|
||||
resource: "projects",
|
||||
params: {
|
||||
id: id,
|
||||
hostnamePort: baseUrl.hostname,
|
||||
id,
|
||||
hostnamePort: httpd.api.hostnamePort,
|
||||
view: {
|
||||
resource: "issue",
|
||||
params: { issue: issueId },
|
||||
|
||||
Reference in New Issue
Block a user