vanshaj2023 opened a new issue, #3342:
URL: https://github.com/apache/apisix-dashboard/issues/3342

   ### Issue description
   
   Clicking the **Delete** button on a plugin card inside a form (Routes, 
Services, Plugin Configs, etc.) immediately removes the plugin with no 
confirmation. There is no way to undo this — the user must re-add and 
re-configure the plugin from scratch.
   
   **Current behavior**
   `onDelete?.(name)` is called directly in `onClick` with no guard:
   
https://github.com/apache/apisix-dashboard/blob/master/src/components/form-slice/FormItemPlugins/PluginCard.tsx#L81
   
   ### Expected behavior
   
   A confirmation dialog should appear before deleting, consistent with how 
top-level resources are deleted (`DeleteResourceBtn` uses 
`modals.openConfirmModal`).
   
   ### How to Reproduce
   
   1. Go to Plugin Configs → Add Plugin Config
   2. Add any plugin (e.g. `response-rewrite`) and configure it
   3. Click **Delete** on the plugin card
   4. Plugin is deleted instantly — no confirmation dialog
   
   ### Screenshots
   
   
https://github.com/user-attachments/assets/fd77cc89-46cc-42dd-a3d5-61e9e194cc3e
   
   ### Environment
   
   - apisix-dashboard: master
   
   
   ### Additional context
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to