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 2 and 3

orig
1
2
3
4
5

Commits

Summary ID Author
Add a JavaScript hook for extending the File Attachment thumbnail UI.
76c0ca916355428e4bd5e055520acb99c835f664 Michelle Aubin
Add a JavaScript hook for extending the File Attachment thumbnail UI.
4f098d5199967e715297e5abe70bb0ac4891f2d6 Michelle Aubin
docs/manual/extending/index.rst
reviewboard/staticbundles.py
reviewboard/static/rb/js/views/fileAttachmentThumbnailView.es6.js
Loading...