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: "Are you sure you want to delete the following work 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, TBD:
* Include the project name in the 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).
* 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: "Are you sure you want to delete the following work 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, TBD:
* Include the project name in the 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">