Skip to content

🐛(front) show actual selection count in hard delete modal#665

Merged
PanchoutNathan merged 1 commit intomainfrom
fix/651
Apr 16, 2026
Merged

🐛(front) show actual selection count in hard delete modal#665
PanchoutNathan merged 1 commit intomainfrom
fix/651

Conversation

@PanchoutNathan
Copy link
Copy Markdown
Contributor

Summary

  • The trash hard delete confirmation modal always read "2 items"
    regardless of the selection size, because the modal received a
    boolean multiple prop and hardcoded count: 2 for the i18n
    interpolation.
  • Replace the multiple boolean with a count number prop and pass
    selectedItems.length from the trash page so the plural message
    reflects the real selection.

Closes #651

Test plan

  • Open the trash view, select 3+ items, click hard delete and
    confirm the modal reads "delete these 3 items forever?".
  • Select a single item and confirm the modal reads
    "delete this item forever?".
  • Run frontend type-check / lint.

Copy link
Copy Markdown
Contributor

@NathanVss NathanVss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

quick win

The trash hard delete confirmation modal always displayed "2 items"
regardless of how many items were selected, because it received a
boolean `multiple` prop and hardcoded `count: 2` for the i18n
interpolation. Replace the boolean with the real selection length so
the plural message reflects the actual count.
@sonarqubecloud
Copy link
Copy Markdown

@PanchoutNathan PanchoutNathan merged commit 52d5ab2 into main Apr 16, 2026
31 checks passed
@PanchoutNathan PanchoutNathan deleted the fix/651 branch April 16, 2026 14:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Trash hard-delete disclaimer wrong number

2 participants