Disables close button when page is being translated. (#421)
Co-authored-by: Abhishek Aggarwal <66322306+abhi-agg@users.noreply.github.com>
This commit is contained in:
Родитель
4ff61b44e0
Коммит
244b1564c6
|
@ -192,7 +192,7 @@ window.MozTranslationNotification = class extends MozElements.Notification {
|
|||
this._getAnonElt("qualityestimations-check").checked
|
||||
);
|
||||
this.state = this.translationNotificationManager.TranslationInfoBarStates.STATE_TRANSLATING;
|
||||
this._getAnonElt("closeButton").disabled = true;
|
||||
this._getAnonElt("closeButton").style.display = "none";
|
||||
this._getAnonElt("displayStatistics").style.display = "none";
|
||||
this._getAnonElt("aftertranslatedOptions").style.display = "block";
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче