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

QoL improvements to email printing #9852

Merged
merged 1 commit into from
Jul 15, 2024
Merged

QoL improvements to email printing #9852

merged 1 commit into from
Jul 15, 2024

Conversation

GVodyanov
Copy link
Contributor

@GVodyanov GVodyanov commented Jul 15, 2024

Fixes #8866

Improve upon #9818

TODO:

  • Add a print button in actions menu
  • Remove reply button
  • Remove envelope border
  • Remove unnecessary action items

image

Signed-off-by: Grigory V <scratchx@gmx.com>
Comment on lines +576 to +578
setTimeout(() => {
window.print()
}, 10)
Copy link
Member

Choose a reason for hiding this comment

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

Could you use Vue's $nextTick callback?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Doing

this.$nextTick(() => {
	window.print()
})

Does not seem to work, is there a better way to do it?

Copy link
Member

Choose a reason for hiding this comment

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

Then we'll leave the timeout workaround 👍

Copy link
Member

Choose a reason for hiding this comment

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

The only thing I could imagine is adding a dedicated close-after-click event in the upstream component and listening to that instead of the click event

@ChristophWurst ChristophWurst merged commit 63a8d48 into main Jul 15, 2024
28 checks passed
@ChristophWurst ChristophWurst deleted the enh/mail-printing branch July 15, 2024 13:02
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.

Print out email
2 participants