From fe3111a34df7ff81d3defd86730e529f760bb02f Mon Sep 17 00:00:00 2001 From: Bhargav Date: Thu, 29 Aug 2024 13:44:07 +0530 Subject: [PATCH] fix: Alert cloning issues (#4386) ## Summary by CodeRabbit - **New Features** - Enhanced alert cloning functionality with a structured dialog layout, including a new back button and dynamic title display. - Added validation checks for required fields in the alert cloning form to prevent incomplete submissions. - Introduced a new localization entry for the "Clone Alert" title, improving user interface clarity. - **Bug Fixes** - Improved handling of the `max_query_range` setting to ensure it always has a defined value, enhancing configuration robustness. - **Style** - Refined button styling and layout adjustments for a more cohesive user experience in the alert cloning dialog. --------- Co-authored-by: Sai Nikhil --- web/src/components/alerts/AlertList.vue | 83 +++++++++++++++++++++---- web/src/components/logstream/schema.vue | 2 + web/src/locales/languages/en.json | 1 + 3 files changed, 74 insertions(+), 12 deletions(-) diff --git a/web/src/components/alerts/AlertList.vue b/web/src/components/alerts/AlertList.vue index 899e6a2b7f..053a9d9062 100644 --- a/web/src/components/alerts/AlertList.vue +++ b/web/src/components/alerts/AlertList.vue @@ -231,11 +231,29 @@ along with this program. If not, see . v-model="confirmDelete" />