Skip to content

Commit

Permalink
fix: breadcrumbs svelte 5 (#1513)
Browse files Browse the repository at this point in the history
Signed-off-by: axel7083 <[email protected]>
  • Loading branch information
axel7083 authored Aug 8, 2024
1 parent 2d3cd02 commit c62ed85
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions packages/frontend/src/pages/CreateService.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,8 @@ export function goToUpPage(): void {
breadcrumbLeftPart="Model Services"
breadcrumbRightPart="Creating Model service"
breadcrumbTitle="Go back to Model Services"
on:close={goToUpPage}
on:breadcrumbClick={goToUpPage}>
onclose={goToUpPage}
onbreadcrumbClick={goToUpPage}>
<svelte:fragment slot="icon">
<div class="rounded-full w-8 h-8 flex items-center justify-center">
<Fa size="1.125x" class="text-[var(--pd-content-header-icon)]" icon={faPlus} />
Expand Down
4 changes: 2 additions & 2 deletions packages/frontend/src/pages/ImportModel.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ export function goToUpPage(): void {
breadcrumbLeftPart="Models"
breadcrumbRightPart="Import Model"
breadcrumbTitle="Go back to Models Catalog"
on:close={goToUpPage}
on:breadcrumbClick={goToUpPage}>
onclose={goToUpPage}
onbreadcrumbClick={goToUpPage}>
<svelte:fragment slot="icon">
<div class="rounded-full w-8 h-8 flex items-center justify-center">
<Fa size="1.125x" class="text-[var(--pd-content-header-icon)]" icon={faFileImport} />
Expand Down
4 changes: 2 additions & 2 deletions packages/frontend/src/pages/InferenceServerDetails.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@ export function goToUpPage(): void {
breadcrumbLeftPart="Model Services"
breadcrumbRightPart="Service details"
breadcrumbTitle="Go back to Model Services"
on:close={goToUpPage}
on:breadcrumbClick={goToUpPage}>
onclose={goToUpPage}
onbreadcrumbClick={goToUpPage}>
<svelte:fragment slot="icon">
<div class="mr-3">
{#if service !== undefined}
Expand Down
4 changes: 2 additions & 2 deletions packages/frontend/src/pages/Model.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ export function goToUpPage(): void {
breadcrumbLeftPart="Models"
breadcrumbRightPart={model?.name || ''}
breadcrumbTitle="Go back to Models"
on:close={goToUpPage}
on:breadcrumbClick={goToUpPage}>
onclose={goToUpPage}
onbreadcrumbClick={goToUpPage}>
<svelte:fragment slot="content">
<div class="flex flex-row w-full h-full bg-[var(--pd-content-bg)] overflow-y-auto">
<div class="flex-grow p-5">
Expand Down
4 changes: 2 additions & 2 deletions packages/frontend/src/pages/Playground.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,8 @@ export function goToUpPage(): void {
breadcrumbLeftPart="Playgrounds"
breadcrumbRightPart={conversation?.name}
breadcrumbTitle="Go back to Playgrounds"
on:close={goToUpPage}
on:breadcrumbClick={goToUpPage}>
onclose={goToUpPage}
onbreadcrumbClick={goToUpPage}>
<svelte:fragment slot="icon">
<div class="mr-3">
<StatusIcon icon={ContainerIcon} size={24} status={getStatusForIcon(server?.status, server?.health?.Status)} />
Expand Down
4 changes: 2 additions & 2 deletions packages/frontend/src/pages/PlaygroundCreate.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ export function goToUpPage(): void {
breadcrumbLeftPart="Playgrounds"
breadcrumbRightPart="New Playground environment"
breadcrumbTitle="Go back to Playgrounds"
on:close={goToUpPage}
on:breadcrumbClick={goToUpPage}>
onclose={goToUpPage}
onbreadcrumbClick={goToUpPage}>
<svelte:fragment slot="icon">
<div class="rounded-full w-8 h-8 flex items-center justify-center">
<Fa size="1.125x" class="text-[var(--pd-content-header-icon)]" icon={faPlus} />
Expand Down
4 changes: 2 additions & 2 deletions packages/frontend/src/pages/Recipe.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ export function goToUpPage(): void {
breadcrumbLeftPart="Recipes"
breadcrumbRightPart={recipe?.name || ''}
breadcrumbTitle="Go back to Recipes"
on:close={goToUpPage}
on:breadcrumbClick={goToUpPage}>
onclose={goToUpPage}
onbreadcrumbClick={goToUpPage}>
<svelte:fragment slot="icon">
<div class="rounded-full w-8 h-8 flex items-center justify-center">
<Fa size="1.125x" class="text-[var(--pd-content-header-icon)]" icon={getIcon(recipe?.icon)} />
Expand Down
4 changes: 2 additions & 2 deletions packages/frontend/src/pages/StartRecipe.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,8 @@ export function goToUpPage(): void {
breadcrumbRightPart="Start recipe"
breadcrumbTitle="Go back to recipes page"
title="Start recipe"
on:close={goToUpPage}
on:breadcrumbClick={goToUpPage}>
onclose={goToUpPage}
onbreadcrumbClick={goToUpPage}>
<svelte:fragment slot="icon">
<div class="rounded-full w-8 h-8 flex items-center justify-center">
<Fa size="1.125x" class="text-[var(--pd-content-header-icon)]" icon={faRocket} />
Expand Down

0 comments on commit c62ed85

Please sign in to comment.