Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

fix(ui): confirm alert removal by typing delete

Calvin94860a8f5356
diff --git a/frontend/src/views/Alerts/AlertAction.tsx b/frontend/src/views/Alerts/AlertAction.tsx
index 7b3730e206..20d8682f27 100644
--- a/frontend/src/views/Alerts/AlertAction.tsx
+++ b/frontend/src/views/Alerts/AlertAction.tsx
@@ -276,17 +276,18 @@ export const AlertAction = ({
/>
<AlertDialog
open={popUp.deleteAlert.isOpen}
- confirmationValue={selectedAlert?.name}
+ confirmationValue="delete"
onOpenChange={(open) => handlePopUpToggle("deleteAlert", open)}
>
<AlertDialogContent>
<AlertDialogHeader>
<AlertDialogTitle>Remove Alert?</AlertDialogTitle>
<AlertDialogDescription>
- This permanently removes the alert and stops its notifications.
+ This permanently removes &quot;{selectedAlert?.name}&quot; and stops its
+ notifications.
</AlertDialogDescription>
</AlertDialogHeader>
- <AlertDialogConfirmationField inputProps={{ placeholder: selectedAlert?.name }} />
+ <AlertDialogConfirmationField inputProps={{ placeholder: "delete" }} />
<Alert variant="danger" appearance="borderless">
<AlertDescription>Removing this alert cannot be undone.</AlertDescription>
</Alert>