mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-30 05:35:31 +00:00
Bug 518366: Clear search button shown when there are no recommended add-ons [r=gavin.sharp]
This commit is contained in:
parent
8a542f48b9
commit
a6d4af6514
@ -526,10 +526,12 @@ var ExtensionsView = {
|
||||
|
||||
let strings = document.getElementById("bundle_browser");
|
||||
if (aAddons.length == 0) {
|
||||
let item = this.displaySectionMessage("repo",
|
||||
strings.getString("addonsSearchNone.label"),
|
||||
strings.getString("addonsSearchSuccess.button"),
|
||||
true);
|
||||
let msg = aIsRecommended ? strings.getString("addonsSearchNone.recommended") :
|
||||
strings.getString("addonsSearchNone.search");
|
||||
let button = aIsRecommended ? strings.getString("addonsSearchNone.button") :
|
||||
strings.getString("addonsSearchSuccess2.button");
|
||||
let item = this.displaySectionMessage("repo", msg, button, true);
|
||||
|
||||
if (aSelectFirstResult)
|
||||
this._list.scrollBoxObject.scrollToElement(item);
|
||||
return;
|
||||
@ -570,7 +572,7 @@ var ExtensionsView = {
|
||||
}
|
||||
|
||||
if (!aIsRecommended)
|
||||
this.displaySectionMessage("repo", null, strings.getString("addonsSearchSuccess.button"), true);
|
||||
this.displaySectionMessage("repo", null, strings.getString("addonsSearchSuccess2.button"), true);
|
||||
},
|
||||
|
||||
showPage: function ev_showPage(aItem) {
|
||||
|
@ -2,10 +2,12 @@
|
||||
addonsLocalNone.label=No add-ons installed
|
||||
addonsSearchStart.label=Searching for add-ons…
|
||||
addonsSearchStart.button=Cancel
|
||||
addonsSearchNone.label=No matches found
|
||||
addonsSearchNone.search=No matches found
|
||||
addonsSearchNone.recommended=No recommended add-ons
|
||||
addonsSearchNone.button=Try Again
|
||||
addonsSearchFail.label=%S couldn't retrieve add-ons
|
||||
addonsSearchFail.button=OK
|
||||
addonsSearchSuccess.button=Clear search
|
||||
addonsSearchSuccess2.button=Clear Search
|
||||
|
||||
addonsConfirmInstall.title=Installing Add-on
|
||||
addonsConfirmInstall.install=Install
|
||||
|
Loading…
Reference in New Issue
Block a user