Add a JavaScript hook for extending the File Attachment thumbnail container UI.

Review Request #12951 — Created April 19, 2023 and submitted — Latest diff uploaded

Information

Review Board
release-6.x

Reviewers

This adds a JavaScript hook for extending the File Attachment thumbnail
container UI. The hook can be used to display additional content on
file attachment thumbnails and in the file attachment actions menu.

This also adds a method to the File Attachment thumbnail view that allows
callers to add an action to the file attachment actions menu.

  • Ran JS unit tests.
  • Ran unit tests.
  • Manually tested with the new "Download as PDF" action that's being added in
    in Power Pack.
  • Manually tested with a simple extension and view, the one in the example
    in the docs.
  • Built the docs and made sure they look ok.

Changes between revision 1 and 2

orig
1
2
3
4
5

Commits

Summary ID Author
Add a JavaScript hook for extending the File Attachment thumbnail UI.
125d1de81d3f009bd96ff33d557faec2d83e7ab1 Michelle Aubin
Add a JavaScript hook for extending the File Attachment thumbnail UI.
76c0ca916355428e4bd5e055520acb99c835f664 Michelle Aubin
reviewboard/static/rb/js/views/fileAttachmentThumbnailView.es6.js
Loading...