From 223c4564122fe4f7de43a892920a97f0afadc553 Mon Sep 17 00:00:00 2001 From: Arham Dugar Date: Sun, 22 Feb 2026 20:08:42 +0530 Subject: [PATCH 1/3] changes made --- .../ar/components/Form/DeleteModalContent.tsx | 8 +++++- .../useDeleteArtifactModal.tsx | 13 ++++++++- .../useDeleteRepositoryModal.tsx | 13 ++++++++- .../repository-list/strings/strings.en.yaml | 4 +-- .../VersionActions/DeleteVersionMenuItem.tsx | 4 ++- .../hooks/useDeleteVersionModal.tsx | 27 +++++++++++++++++-- 6 files changed, 61 insertions(+), 8 deletions(-) diff --git a/web/src/ar/components/Form/DeleteModalContent.tsx b/web/src/ar/components/Form/DeleteModalContent.tsx index cb97f6222a..5b49a62168 100644 --- a/web/src/ar/components/Form/DeleteModalContent.tsx +++ b/web/src/ar/components/Form/DeleteModalContent.tsx @@ -30,6 +30,7 @@ interface DeleteModalContentProps { content: string placeholder: string inputLabel: string + inputLabelValue?: string deleteBtnText?: string } @@ -41,9 +42,14 @@ function DeleteModalContent({ content, placeholder, inputLabel, + inputLabelValue, deleteBtnText }: DeleteModalContentProps) { const { getString } = useStrings() + + // Construct the label with the value appended if provided + const finalLabel = inputLabelValue ? `${inputLabel} (${inputLabelValue})` : inputLabel + return ( {content} - +