fix: multiple alerts in the same millisecond overwrite each other

v1.18.x
Julian Lam 4 years ago
parent 6521e4dac4
commit 589216e720

@ -147,6 +147,7 @@ app.cacheBuster = null;
app.alertSuccess = function (message, timeout) { app.alertSuccess = function (message, timeout) {
app.alert({ app.alert({
alert_id: utils.generateUUID(),
title: '[[global:alert.success]]', title: '[[global:alert.success]]',
message: message, message: message,
type: 'success', type: 'success',
@ -163,6 +164,7 @@ app.cacheBuster = null;
} }
app.alert({ app.alert({
alert_id: utils.generateUUID(),
title: '[[global:alert.error]]', title: '[[global:alert.error]]',
message: message, message: message,
type: 'danger', type: 'danger',

Loading…
Cancel
Save