Content
View differences
Updated by Oliver Günther about 2 months ago
**As** a user with permission to remove WPs
**I want to** see a primerized danger dialog instead of spot modal
Like PDF generating dialog
**What is the expected behavior?**
* We should use the Primer DangerWarning component, with the list of work packages in an [insetBox](https://qa.openproject-edge.com/lookbook/pages/components/inset_box).
* Use the same pattern as for bulk delete projects, except with a DangerWarning (no checkbox confirmation): <mention class="mention" data-id="64885" data-type="work_package" data-text="##64885">##64885</mention>
* DangerWarning Dialog:
* Title: "Permanently delete these work packages?"
* Text for bulk: "The following work packages, including children and all associated data, will permanently be deleted:"
* Text for single: Text: "Are you sure you want to delete the following work package "Task #1324: foobar"?"
packages?"
* Body: List of work packages in an [insetBox](https://qa.openproject-edge.com/lookbook/pages/components/inset_box); use [Work Package Info Line](https://qa.openproject-edge.com/lookbook/pages/components/work_package_info_line) for listing work packages, but without the status
* When multiple projects are involved, show a banner at the top of the work packages list
TBD:
* Show Include the project name in work package list for projects that are not in the current infoline
* OR group by project
name
* Buttons:
* Cancel
* Delete permanently (danger)
<img class="image_resized op-uc-image op-uc-image_inline" style="width:754px;" src="/api/v3/attachments/784078/content">
**I want to** see a primerized danger dialog instead of spot modal
Like PDF generating dialog
**What is the expected behavior?**
* We should use the Primer DangerWarning component, with the list of work packages in an [insetBox](https://qa.openproject-edge.com/lookbook/pages/components/inset_box).
* DangerWarning
* Title: "Permanently delete these work packages?"
* Text for bulk: "The following work packages, including children and all associated data, will permanently be deleted:"
* Text for single:
* OR group by