mirror of
https://github.com/ershisan99/coolify.git
synced 2026-01-31 05:02:12 +00:00
24
apps/ui/src/routes/sources/[id]/index.svelte
Normal file
24
apps/ui/src/routes/sources/[id]/index.svelte
Normal file
@@ -0,0 +1,24 @@
|
||||
<script context="module" lang="ts">
|
||||
import type { Load } from '@sveltejs/kit';
|
||||
export const load: Load = async ({ fetch, params, stuff }) => {
|
||||
return {
|
||||
props: { ...stuff }
|
||||
};
|
||||
};
|
||||
</script>
|
||||
|
||||
<script lang="ts">
|
||||
export let source: any;
|
||||
export let settings: any;
|
||||
import { page } from '$app/stores';
|
||||
import Source from './_Source.svelte';
|
||||
import New from './_New.svelte';
|
||||
const { id } = $page.params;
|
||||
</script>
|
||||
|
||||
|
||||
{#if id === 'new'}
|
||||
<New bind:source bind:settings />
|
||||
{:else}
|
||||
<Source bind:source bind:settings />
|
||||
{/if}
|
||||
Reference in New Issue
Block a user