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

Fix/pdf navbar export #1649

Merged
merged 2 commits into from
Dec 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/components/Settings/Export/Export.helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -890,9 +890,9 @@ export async function cboardExportAdapter(allBoards = [], board) {

export async function pdfExportAdapter(
boards = [],
labelFontSize,
intl,
picsee = false,
labelFontSize
picsee = false
) {
const font = definePDFfont(intl);
const docDefinition = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import PrintBoardButton from './PrintBoardButton.component';
import PrintBoardDialog from './PrintBoardDialog.component';
import messages from './PrintBoardButton.messages';
import { showNotification } from '../../Notifications/Notifications.actions';
import { MEDIUM_FONT_SIZE } from '../../Settings/Export/Export.constants';

class PrintBoardButtonContainer extends React.Component {
constructor(props) {
Expand Down Expand Up @@ -37,7 +38,7 @@ class PrintBoardButtonContainer extends React.Component {
);

const { pdfExportAdapter } = await this.exportHelpers;
pdfExportAdapter([currentBoard], intl).then(() => {
pdfExportAdapter([currentBoard], MEDIUM_FONT_SIZE, intl).then(() => {
this.setState({ loading: false });
showNotification(intl.formatMessage(messages.boardDownloaded));
});
Expand Down