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(
|
watch(
|
||||||
() => [props.open, props.sourceId] as const,
|
() => [props.open, props.sourceId] as const,
|
||||||
async ([open, id]) => {
|
async ([open, id]) => {
|
||||||
|
if (!open || !id) {
|
||||||
|
resetState();
|
||||||
|
return;
|
||||||
|
}
|
||||||
resetState();
|
resetState();
|
||||||
if (!open || !id) return;
|
|
||||||
await loadPreview(id);
|
await loadPreview(id);
|
||||||
},
|
},
|
||||||
|
{ immediate: true },
|
||||||
);
|
);
|
||||||
|
|
||||||
watch(targetId, () => {
|
watch(targetId, () => {
|
||||||
@@ -283,9 +287,9 @@ watch(targetId, () => {
|
|||||||
</section>
|
</section>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<p v-else-if="!error" class="muted">
|
<p v-else-if="!busy && !error" class="muted">
|
||||||
برای شروع ادغام، کاریز مبدا را انتخاب کنید.
|
<template v-if="sourceId">در حال بارگذاری پیشنمایش ادغام…</template>
|
||||||
<template v-if="sourceName">مبدا فعلی: {{ sourceName }}</template>
|
<template v-else>برای شروع ادغام، از فهرست کاریزها دکمهٔ «ادغام» را بزنید.</template>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p v-if="error" class="error">{{ error }}</p>
|
<p v-if="error" class="error">{{ error }}</p>
|
||||||
|
|||||||
Reference in New Issue
Block a user