Skip to content

Commit

Permalink
Fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
rudolfs committed Jun 26, 2024
1 parent 114956d commit 3e7bf7d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion http-client/lib/profile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const profileSchema = object({
web: object({
pinned: object({ repositories: array(string()) }),
imageUrl: string().optional(),
title: string().optional(),
name: string().optional(),
description: string().optional(),
}),
node: nodeConfigSchema,
Expand Down
6 changes: 3 additions & 3 deletions src/views/nodes/View.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
export let policy: Policy | undefined = undefined;
export let scope: Scope | undefined = undefined;
export let imageUrl: string | undefined = undefined;
export let title: string | undefined = undefined;
export let name: string | undefined = undefined;
export let description: string | undefined = undefined;
$: hostname = isLocal(baseUrl.hostname) ? "Local Node" : baseUrl.hostname;
Expand Down Expand Up @@ -271,8 +271,8 @@
style:top={`${top}px`}
style:height={`calc(100% - ${top}px)`}>
<div>
{#if title}
<div class="title txt-medium txt-semibold">{title}</div>
{#if name}
<div class="txt-medium txt-semibold">{name}</div>
{/if}
{#if description}
<div class="description txt-small">
Expand Down
4 changes: 2 additions & 2 deletions src/views/nodes/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export interface NodesLoadedRoute {
policy?: Policy;
scope?: Scope;
imageUrl?: string;
title?: string;
name?: string;
description?: string;
};
}
Expand Down Expand Up @@ -66,7 +66,7 @@ export async function loadNodeRoute(
policy: node.config?.seedingPolicy.default,
scope: node.config?.seedingPolicy.scope,
imageUrl: profile.config?.web.imageUrl,
title: profile.config?.web.title,
name: profile.config?.web.name,
description: profile.config?.web.description,
},
};
Expand Down

0 comments on commit 3e7bf7d

Please sign in to comment.