Add a close button to the restart-required notification

Fixes #4392
4392-add-close-button-to-restart-notification
Nick O'Leary 2023-11-01 14:39:51 +01:00
parent 8d9b6dd859
commit e5307f6604
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9
1 changed files with 9 additions and 0 deletions

View File

@ -498,6 +498,15 @@ var RED = (function() {
]
}
}
} else if (notificationId === 'restart-required') {
options.buttons = [
{
text: RED._("common.label.close"),
click: function() {
persistentNotifications[notificationId].hideNotification();
}
}
]
}
if (!persistentNotifications.hasOwnProperty(notificationId)) {
persistentNotifications[notificationId] = RED.notify(text,options);