mirror of
https://gitee.com/mateos/mateclaw.git
synced 2026-09-15 11:58:34 +08:00
fix(ui/workflows): publish dialog auto-closes on compile failure
This commit is contained in:
parent
1605146931
commit
5909cb601e
@ -748,6 +748,15 @@ async function onPublishSubmit(payload: { note: string }) {
|
|||||||
await reload()
|
await reload()
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
handleCompileError(e)
|
handleCompileError(e)
|
||||||
|
// Close the publish dialog on failure so the operator sees the
|
||||||
|
// errors-panel + Monaco markers underneath instead of staring at a
|
||||||
|
// dialog that just twitched. Also surface a toast with the error
|
||||||
|
// count so the redirect to the editor is obvious — the panel is
|
||||||
|
// below the fold on smaller viewports.
|
||||||
|
publishDialogOpen.value = false
|
||||||
|
if (compileErrors.value.length) {
|
||||||
|
ElMessage.error(t('workflows.status.compileFailed', { count: compileErrors.value.length }))
|
||||||
|
}
|
||||||
} finally {
|
} finally {
|
||||||
busy.value = false
|
busy.value = false
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user