зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1496062 - Remove add-on type specific search labels. r=mstriemer,fluent-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D72390
This commit is contained in:
Родитель
b0de56f2a0
Коммит
5e5f758c61
|
@ -485,8 +485,6 @@ updates-heading = Manage Your Updates
|
|||
discover-heading = Personalize Your { -brand-short-name }
|
||||
shortcuts-heading = Manage Extension Shortcuts
|
||||
|
||||
theme-heading-search-label = Find more themes
|
||||
extension-heading-search-label = Find more extensions
|
||||
default-heading-search-label = Find more add-ons
|
||||
addons-heading-search-input =
|
||||
.placeholder = Search addons.mozilla.org
|
||||
|
|
|
@ -65,7 +65,7 @@
|
|||
<template name="addon-page-header">
|
||||
<div class="sticky-container">
|
||||
<div class="main-search">
|
||||
<label for="search-addons" class="search-label"></label>
|
||||
<label for="search-addons" class="search-label" data-l10n-id="default-heading-search-label"></label>
|
||||
<search-addons data-l10n-id="search-header-shortcut" data-l10n-attrs="key"></search-addons>
|
||||
</div>
|
||||
<div class="main-heading">
|
||||
|
|
|
@ -1302,7 +1302,6 @@ class AddonPageHeader extends HTMLElement {
|
|||
if (this.childElementCount === 0) {
|
||||
this.appendChild(importTemplate("addon-page-header"));
|
||||
this.heading = this.querySelector(".header-name");
|
||||
this.searchLabel = this.querySelector(".search-label");
|
||||
this.backButton = this.querySelector(".back-button");
|
||||
this.pageOptionsMenuButton = this.querySelector(
|
||||
'[action="page-options"]'
|
||||
|
@ -1343,17 +1342,6 @@ class AddonPageHeader extends HTMLElement {
|
|||
if (viewType !== "detail") {
|
||||
document.l10n.setAttributes(this.heading, `${viewType}-heading`);
|
||||
}
|
||||
|
||||
let customSearchLabelTypes = {
|
||||
shortcuts: "extension",
|
||||
extension: "extension",
|
||||
theme: "theme",
|
||||
};
|
||||
let searchLabelType = customSearchLabelTypes[viewType] || "default";
|
||||
document.l10n.setAttributes(
|
||||
this.searchLabel,
|
||||
`${searchLabelType}-heading-search-label`
|
||||
);
|
||||
}
|
||||
|
||||
handleEvent(e) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче