Skip to content

Commit

Permalink
[WFX-356] Add addon version to about:addons list view.
Browse files Browse the repository at this point in the history
  • Loading branch information
MrAlex94 committed May 4, 2023
1 parent a78ebab commit a269e48
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions toolkit/mozapps/extensions/content/aboutaddons.html
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,10 @@ <h2 class="permission-header" data-l10n-id="addon-sitepermissions-required"><spa
<img class="card-heading-icon addon-icon" alt="">
<div class="card-contents">
<div class="addon-name-container">
<!-- WATERFOX -->
<div class="addon-name">
<div class="addon-version-number"></div>
</div>
<a class="addon-badge addon-badge-recommended"
is="support-link"
support-page="add-on-badges"
Expand Down
4 changes: 4 additions & 0 deletions toolkit/mozapps/extensions/content/aboutaddons.js
Original file line number Diff line number Diff line change
Expand Up @@ -3490,6 +3490,10 @@ class AddonCard extends HTMLElement {
}
nameContainer.prepend(nameHeading);

// WATERFOX
let collapsedVersion = this.card.querySelector(".addon-version-number");
collapsedVersion.textContent = addon.version;

let panelType = addon.type == "plugin" ? "plugin-options" : "addon-options";
this.options = document.createElement(panelType);
this.options.render();
Expand Down

0 comments on commit a269e48

Please sign in to comment.