vue-pdf-app icon indicating copy to clipboard operation
vue-pdf-app copied to clipboard

Adding Id-Config overrides Config functionality

Open dallasbeek opened this issue 3 years ago • 1 comments

:id-config and :config don't play well together. If I have just :config the buttons are removed from the toolbarRight but when I add :id-config the buttons reappear.

Configuration:

  • Web browser and it`s version: Chrome
  • Operating system and it`s version: Win 10
  • vue-pdf-app version: 2.1.0

Steps to reproduce the problem:

<vue-pdf-app :id-config="pdfIdConfig" :config="pdfConfig" :pdf="pdfDocument" style="height: 75vh;"></vue-pdf-app>
<BButton variant="primary" :id="pdfIdConfig.print">Print</BButton>

  data() {
    return {
      pdfIdConfig: {
        print: "printId",
      },
      pdfConfig: {
        toolbar: {
          toolbarViewerRight: {
            openFile: false,
            viewBookmark: false
          }
        }
      },
    };
  }

What is the expected behavior?

In my example bookmark and file open on toolbar would be hidden and print button would work

What went wrong?

toolbar buttons are not hidden

Attachments (screenshots, links, etc)

dallasbeek avatar Jul 14 '21 14:07 dallasbeek

Hi! Yes, I confirm a bug

sandanat avatar Jul 14 '21 19:07 sandanat