mirror of
https://github.com/ershisan99/coolify.git
synced 2026-02-04 21:02:05 +00:00
wip: trpc
This commit is contained in:
18
apps/client/src/routes/destinations/[id]/+page.svelte
Normal file
18
apps/client/src/routes/destinations/[id]/+page.svelte
Normal file
@@ -0,0 +1,18 @@
|
||||
<script lang="ts">
|
||||
import type { LayoutData } from './$types';
|
||||
|
||||
export let data: LayoutData;
|
||||
let destination = data.destination.destination;
|
||||
let settings = data.destination.settings;
|
||||
|
||||
import { page } from '$app/stores';
|
||||
import New from './components/New.svelte';
|
||||
import Destination from './components/Destination.svelte';
|
||||
const { id } = $page.params;
|
||||
</script>
|
||||
|
||||
{#if id === 'new'}
|
||||
<New />
|
||||
{:else}
|
||||
<Destination bind:destination bind:settings />
|
||||
{/if}
|
||||
Reference in New Issue
Block a user