зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1372645 Highlight the legacy pane when showing details for a legacy addon r=rhelmer
MozReview-Commit-ID: D6jSI8dGMIh --HG-- extra : rebase_source : f87f67c555742d081675644d50e455477a5fa2a6
This commit is contained in:
Родитель
ca59d812e5
Коммит
4aeed21b13
|
@ -3153,8 +3153,11 @@ var gDetailView = {
|
|||
|
||||
// If the search category isn't selected then make sure to select the
|
||||
// correct category
|
||||
if (gCategories.selected != "addons://search/")
|
||||
gCategories.select("addons://list/" + aAddon.type);
|
||||
if (gCategories.selected != "addons://search/") {
|
||||
let category = (isDisabledLegacy(aAddon) || isDisabledUnsigned(aAddon)) ?
|
||||
"addons://legacy" : `addons://list/${aAddon.type}`;
|
||||
gCategories.select(category);
|
||||
}
|
||||
|
||||
document.getElementById("detail-name").textContent = aAddon.name;
|
||||
var icon = AddonManager.getPreferredIconURL(aAddon, 64, window);
|
||||
|
|
Загрузка…
Ссылка в новой задаче