-
Notifications
You must be signed in to change notification settings - Fork 603
Open
Labels
bugSomething isn't workingSomething isn't working
Description
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
- Go to Plugin Configs → Add Plugin Config
- Add any plugin (e.g.
response-rewrite) and configure it - Click Delete on the plugin card
- Plugin is deleted instantly — no confirmation dialog
Screenshots
Apache.APISIX.Dashboard.-.Personal.-.Microsoft.Edge.2026-03-21.04-30-07.mp4
Environment
- apisix-dashboard: master
Additional context
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working