Skip to content

fix(ux): no confirmation dialog when deleting a plugin from form #3342

@vanshaj2023

Description

@vanshaj2023

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

Apache.APISIX.Dashboard.-.Personal.-.Microsoft.Edge.2026-03-21.04-30-07.mp4

Environment

  • apisix-dashboard: master

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions