зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1845428 - Alphabetize getters in translationsPanel r=gregtatum
Drive-by cleanup of code in translationsPanel.js Differential Revision: https://phabricator.services.mozilla.com/D184704
This commit is contained in:
Родитель
042f9c0f71
Коммит
3cd3d4ff83
|
@ -288,6 +288,7 @@ var TranslationsPanel = new (class {
|
|||
getter("button", "translations-button");
|
||||
getter("buttonLocale", "translations-button-locale");
|
||||
getter("buttonCircleArrows", "translations-button-circle-arrows");
|
||||
getter("cancelButton", "translations-panel-cancel");
|
||||
getter(
|
||||
"changeSourceLanguageButton",
|
||||
"translations-panel-change-source-language"
|
||||
|
@ -304,10 +305,9 @@ var TranslationsPanel = new (class {
|
|||
getter("intro", "translations-panel-intro");
|
||||
getter("langSelection", "translations-panel-lang-selection");
|
||||
getter("multiview", "translations-panel-multiview");
|
||||
getter("cancelButton", "translations-panel-cancel");
|
||||
getter("restoreButton", "translations-panel-restore-button");
|
||||
getter("toMenuList", "translations-panel-to");
|
||||
getter("toLabel", "translations-panel-to-label");
|
||||
getter("toMenuList", "translations-panel-to");
|
||||
getter("translateButton", "translations-panel-translate");
|
||||
getter("unsupportedHint", "translations-panel-error-unsupported-hint");
|
||||
|
||||
|
@ -1155,6 +1155,9 @@ var TranslationsPanel = new (class {
|
|||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Handle the cancel button being clicked.
|
||||
*/
|
||||
onCancel() {
|
||||
PanelMultiView.hidePopup(this.elements.panel);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче