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:
Erik Nordin 2023-07-29 04:43:46 +00:00
Родитель 042f9c0f71
Коммит 3cd3d4ff83
1 изменённых файлов: 5 добавлений и 2 удалений

Просмотреть файл

@ -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);
}