Skip to content

Commit

Permalink
Merge pull request #1649 from RodriSanchez1/fix/pdfNavbarExport
Browse files Browse the repository at this point in the history
Fix/pdf navbar export
  • Loading branch information
RodriSanchez1 authored Dec 26, 2023
2 parents fad1f4e + 8d76945 commit 0bc86e3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
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

0 comments on commit 0bc86e3

Please sign in to comment.