You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'Danger' type notifications close directly after display.
While reading the source code I noticed that the parameters of the 'danger' method are not the same as for the others: the duration is missing.
// show notification from JS
Toast.danger('message', 'title');
// source code
...
window.Toast = {
...
warning (message, title = '', duration = undefined) {
this.component.add(this.make(message, title, 'warning', duration ?? this.component.defaultDuration));
},
// no duration
danger (message, title = '') {
// no defaultDuration
this.component.add(this.make(message, title, 'danger'));
}
}
The text was updated successfully, but these errors were encountered:
Hi,
'Danger' type notifications close directly after display.
While reading the source code I noticed that the parameters of the 'danger' method are not the same as for the others: the duration is missing.
The text was updated successfully, but these errors were encountered: