fix(web): load pipeline merge preview when wizard opens

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-10-12 21:59:46 +03:30
co-authored by Cursor
parent 609ce3d006
commit 910c7f51b0
@@ -161,10 +161,14 @@ async function submitMerge() {
watch(
() => [props.open, props.sourceId] as const,
async ([open, id]) => {
if (!open || !id) {
resetState();
return;
}
resetState();
if (!open || !id) return;
await loadPreview(id);
},
{ immediate: true },
);
watch(targetId, () => {
@@ -283,9 +287,9 @@ watch(targetId, () => {
</section>
</template>
<p v-else-if="!error" class="muted">
برای شروع ادغام، کاریز مبدا را انتخاب کنید.
<template v-if="sourceName">مبدا فعلی: {{ sourceName }}</template>
<p v-else-if="!busy && !error" class="muted">
<template v-if="sourceId">در حال بارگذاری پیش‌نمایش ادغام…</template>
<template v-else>برای شروع ادغام، از فهرست کاریزها دکمهٔ «ادغام» را بزنید.</template>
</p>
<p v-if="error" class="error">{{ error }}</p>