From 953f7bd096c4b73159202ff6089cafdc03356f89 Mon Sep 17 00:00:00 2001 From: Sai Nikhil Date: Tue, 10 Dec 2024 23:21:19 +0530 Subject: [PATCH] fix: save pipeline warn (#5303) This PR warns the user when tries to save the pipeline having same input and output node as that doesnot make any impact ## Summary by CodeRabbit - **New Features** - Introduced a confirmation dialog for saving pipelines to enhance user experience. - Added validation checks for pipeline nodes before saving. - **Bug Fixes** - Improved error handling by ensuring users are prompted before saving invalid configurations. - Enhanced user experience with appropriate redirection after dialog cancellation. --------- Co-authored-by: Taiming Liu --- .../components/pipeline/PipelineEditor.vue | 58 +++++++++++++++++-- 1 file changed, 53 insertions(+), 5 deletions(-) diff --git a/web/src/components/pipeline/PipelineEditor.vue b/web/src/components/pipeline/PipelineEditor.vue index b4b1f141fa..39fa049a0f 100644 --- a/web/src/components/pipeline/PipelineEditor.vue +++ b/web/src/components/pipeline/PipelineEditor.vue @@ -135,6 +135,13 @@ along with this program. If not, see . @update:cancel="resetConfirmDialog" v-model="confirmDialogMeta.show" /> +