Bug 1588694 - Fix UI issues related to notifications in calendar-properties-dialog.xul. r=pmorris

This commit is contained in:
Khushil Mistry 2019-10-28 11:22:00 +01:00
Родитель 59d6cea70f
Коммит 8093245ac7
1 изменённых файлов: 5 добавлений и 1 удалений

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

@ -105,11 +105,15 @@ function ltnSaveMailIdentitySelection() {
* (shared between calendar creation wizard and properties dialog)
*/
function ltnNotifyOnIdentitySelection() {
let notificationBox = document.getElementById("no-identity-notification");
while (notificationBox.firstChild) {
notificationBox.firstChild.remove();
}
let gNotification = {};
XPCOMUtils.defineLazyGetter(gNotification, "notificationbox", () => {
return new MozElements.NotificationBox(element => {
element.setAttribute("flex", "1");
document.getElementById("no-identity-notification").append(element);
notificationBox.append(element);
});
});