Content
View differences
Updated by Wieland Lindenthal about 3 years ago
**As** an OpenProject user
**I want to** be asked for confirmation when I click on the **Mark "Mark all as read** read" button in Notification center
**so that** I don't accidentally mark all unread notifications as read when trying to mark just one of them as read
### **Context**
Multiple users have complained about accidentally losing their set of unread notifications when accidentally clicking on the **Mark all "Mark as read** read" button, having confused it for the **Mark "Mark as read** button. read button". Whilst there is a minor difference in the icon, the relatively small dimensions make it hard to distinguish, and the difference is even less apparent when scanning.
<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/55460/content">
### **Acceptance criteria**
When the user clicks on the **Mark "Mark all as read** read" button:
* Display a modal dialogue:
* Title: "Mark all as read" (no divider)
* Text: "Are you sure you want to mark all your unread notifications as read? This will empty your notification inbox."
* Action bar (grey, two buttons on the right side)
* Danger: "Mark all as read"
* Secondary: "Cancel"
* The "Cancel" button cancels the action and closes the dialogue
* The "Mark all as read" button marks all unread notifications as read
### Visuals
<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/55461/content">
### Out of context
One larger, more general solution to this kind of problem is to introduce a software-wide undo feature (a toast like: "All unread notifications marked as read. [Undo](https://community.openproject.org/#)."), but this is outside of the context of this mini feature.
**I want to** be asked for confirmation when I click on the **Mark
**so that** I don't accidentally mark all unread notifications as read when trying to mark just one of them as read
### **Context**
Multiple users have complained about accidentally losing their set of unread notifications when accidentally clicking on the **Mark all
<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/55460/content">
### **Acceptance criteria**
When the user clicks on the **Mark
* Display a modal dialogue:
* Title: "Mark all as read" (no divider)
* Text: "Are you sure you want to mark all your unread notifications as read? This will empty your notification inbox."
* Action bar (grey, two buttons on the right side)
* Danger: "Mark all as read"
* Secondary: "Cancel"
* The "Cancel" button cancels the action and closes the dialogue
* The "Mark all as read" button marks all unread notifications as read
### Visuals
<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/55461/content">
### Out of context
One larger, more general solution to this kind of problem is to introduce a software-wide undo feature (a toast like: "All unread notifications marked as read. [Undo](https://community.openproject.org/#)."), but this is outside of the context of this mini feature.