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

Feature/PrintAttachmentsMerge #1322

Merged
merged 3 commits into from
Apr 18, 2023
Merged

Conversation

OlofSvahnVbg
Copy link
Collaborator

This is a branch created solely for merging the relevant changes made in #1289 (DocumentHandler - PrintAttachments). There was some code overlap with another branch that has already been merged.

closes #1289

@OlofSvahnVbg OlofSvahnVbg added the new feature Request for adding/changing functionality label Apr 14, 2023
@OlofSvahnVbg OlofSvahnVbg added this to the 3.x milestone Apr 14, 2023
@OlofSvahnVbg OlofSvahnVbg self-assigned this Apr 14, 2023
@OlofSvahnVbg OlofSvahnVbg requested review from Hallbergs and removed request for sweco-secoma April 17, 2023 05:47
Copy link
Member

@Hallbergs Hallbergs left a comment

Choose a reason for hiding this comment

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

Remove warnings please:
image
Seems like there are two identical functions!

I see that there are some style-changes to the print-window. Is this print-button move desired? (Moving the button from the bottom to the middle-ish).
Before (In 3.11 at least, maybe this was introduced somewhere else?):
image

In the PR:
image

Comment on lines 906 to 909
toggleDocumentsAttachments = () => {
let showAttachments = this.state.showAttachments;
this.setState({ showAttachments: !showAttachments });
};
Copy link
Member

Choose a reason for hiding this comment

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

This could lead to some state-timing issues, i would suggest:

this.setState((prevState) => ({ showAttachments: !prevState.showAttachments }));

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Hmm, I think the print button move is a remnant from my previous change, can revert it.

I'll fix the other two things. :)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Fixed!

@jesade-vbg jesade-vbg merged commit 324c8a4 into develop Apr 18, 2023
@jesade-vbg jesade-vbg deleted the feature/PrintAttachmentsMerge branch April 18, 2023 11:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature Request for adding/changing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants