mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-23 08:00:45 +00:00
3a33f0ee61
* feat: simplify sync vs promotion mode ui in git sync settings * improvements
24 lines
648 B
Svelte
24 lines
648 B
Svelte
<script lang="ts">
|
|
import type { GitSyncRepository } from './GitSyncContext.svelte'
|
|
|
|
let {
|
|
mode,
|
|
targetBranch,
|
|
repository
|
|
} = $props<{
|
|
mode?: 'sync' | 'promotion' | null
|
|
targetBranch: string
|
|
repository?: GitSyncRepository | null
|
|
}>()
|
|
</script>
|
|
|
|
<div class="text-base">
|
|
{#if mode === 'promotion'}
|
|
<div><span class="font-bold">Promotion:</span> Creating branches whose promotion target is {targetBranch}</div>
|
|
{#if repository?.group_by_folder}
|
|
<div class="text-sm text-tertiary mt-1">Grouped by folder</div>
|
|
{/if}
|
|
{:else}
|
|
<div><span class="font-bold">Sync:</span> Syncing back to branch {targetBranch}</div>
|
|
{/if}
|
|
</div> |