Reverted default delay

This commit is contained in:
kylejwatson 2020-08-02 12:34:51 +01:00
parent 7312d6e0d6
commit bfadb57694
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ export default Vue.extend({
},
open: function (message, action, time) {
const toast = { message: message, action: action || (() => { }), isOpen: false, timeout: null }
toast.timeout = setTimeout(this.close, time || 6000, toast)
toast.timeout = setTimeout(this.close, time || 3000, toast)
setImmediate(() => { toast.isOpen = true })
if (this.toasts.length > 4) {
this.remove(0)