RED.notifiy.update should not change fixed state unless explicitly set

This commit is contained in:
Nick O'Leary 2021-10-06 13:52:36 +01:00
parent 4b0eb8475d
commit 79a1d6c561
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9
1 changed files with 1 additions and 1 deletions

View File

@ -222,7 +222,7 @@ RED.notifications = (function() {
n.className = "red-ui-notification red-ui-notification-"+newType;
}
if (!newOptions.fixed) {
if (!fixed || newOptions.fixed === false) {
newTimeout = (newOptions.hasOwnProperty('timeout')?newOptions.timeout:timeout)||5000;
}
if (newOptions.buttons) {