Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pdf export of visible amendments in motion detail view #4493

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

anbebe
Copy link
Contributor

@anbebe anbebe commented Dec 18, 2024

Closes #4431

@anbebe anbebe added the bug label Dec 18, 2024
@anbebe anbebe added this to the 4.3 milestone Dec 18, 2024
const text: string[] = [];
const changesToShow = changes.filter(change => change.showInDiffView());
const changesToShow = changes.filter(change => change.showInDiffView() || showAllChanges);
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
const changesToShow = changes.filter(change => change.showInDiffView() || showAllChanges);
const changesToShow = showAllChanges ? changes : changes.filter(change => change.showInDiffView());

return fn(targetMotion, {
...args,
firstLine: args.firstLine || targetMotion.start_line_number,
showAllChanges: args.showAllChanges
Copy link
Member

Choose a reason for hiding this comment

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

This is not needed because args is already spread.

Suggested change
showAllChanges: args.showAllChanges

@bastianjoel bastianjoel removed their assignment Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Motion detail view: PDF export doesn't export current version
3 participants