mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-01 13:20:41 +01:00
fix: multiple alerts in the same millisecond overwrite each other
This commit is contained in:
@@ -147,6 +147,7 @@ app.cacheBuster = null;
|
||||
|
||||
app.alertSuccess = function (message, timeout) {
|
||||
app.alert({
|
||||
alert_id: utils.generateUUID(),
|
||||
title: '[[global:alert.success]]',
|
||||
message: message,
|
||||
type: 'success',
|
||||
@@ -163,6 +164,7 @@ app.cacheBuster = null;
|
||||
}
|
||||
|
||||
app.alert({
|
||||
alert_id: utils.generateUUID(),
|
||||
title: '[[global:alert.error]]',
|
||||
message: message,
|
||||
type: 'danger',
|
||||
|
||||
Reference in New Issue
Block a user