fix(web): load pipeline merge preview when wizard opens
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user