Skip to content

Confirmations for destructive actions have no Cancel button #3955

Closed

Description

@AlexAndBear

Initial Checklist

  • I understand this is a bug report and questions should be posted in the Community Discussions
  • I searched issues and couldn’t find anything (or linked relevant results below)

Bug Description

Confirmations for destructive actions (deleting users, groups or spaces, "Delete permanently", emptying the trash) only have the "Delete" button, cancelling is the small X in the title bar. We already do it right in the "Unsaved changes" dialog, which has a Cancel button. Let's add a simple modal prop for it and use it in the destructive confirmations, and in "Unsaved changes" instead of its hand-made button.

Reproduction Steps

  1. Admin settings > Users: select a user and click "Delete".
  2. Look at the buttons of the dialog.

Expected Outcome

A visible "Cancel" button next to "Delete" in confirmations of destructive actions.

Actual Outcome

Only "Delete", plus the close icon in the title bar.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions