Skip to content

fix: add missing ImportantIcon and correct favorite/unfavorite bulk actions#12899

Open
RobinAngele wants to merge 2 commits intonextcloud:mainfrom
RobinAngele:fix/important-icon-and-favorite
Open

fix: add missing ImportantIcon and correct favorite/unfavorite bulk actions#12899
RobinAngele wants to merge 2 commits intonextcloud:mainfrom
RobinAngele:fix/important-icon-and-favorite

Conversation

@RobinAngele
Copy link
Copy Markdown

@RobinAngele RobinAngele commented May 7, 2026

Refs #12149

Changes

Missing ImportantIcon (refs #12149)

  • Add ImportantIcon import (vue-material-design-icons/LabelVariant.vue) and component registration in EnvelopeList.vue
  • The "Mark as important" icon was missing from the multiselect quick actions header during bulk selection

Favorite/unfavorite logic

  • Rename methods: favoriteAll()unfavoriteAll(), unFavoriteAll()favoriteAll()
  • Use explicit favFlag: true / favFlag: false instead of inverted computed checks (!this.isAtLeastOneSelectedX)
  • Previously, when all selected messages shared the same state (e.g. all favorited), clicking "Unfavorite" computed favFlag = true (no-op). Now it always passes the correct flag.

How to test

  1. Select multiple messages → click "Mark as important" → icon appears in header
  2. Select all → click "Favorite" → all become favorited
  3. Click "Unfavorite" → all become unfavorited
  4. Repeat with mixed selection (some favorite, some not)

…ctions

- Add missing ImportantIcon import and component registration in
  EnvelopeList so the 'Mark as important' icon renders during
  bulk selection
- Fix favorite/unfavorite bulk action logic: rename methods to
  favoriteAll/unfavoriteAll and use explicit favFlag values
  (true/false) instead of inverted computed checks that failed
  when all selected messages shared the same state

AI-assisted: Cline (Claude)
Signed-off-by: RobinAngele <robin@robin4consulting.com>
@welcome
Copy link
Copy Markdown

welcome Bot commented May 7, 2026

Thanks for opening your first pull request in this repository! ✌️

@ChristophWurst ChristophWurst requested a review from Copilot May 7, 2026 11:50
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants