Reverted default delay
This commit is contained in:
parent
7312d6e0d6
commit
bfadb57694
|
@ -27,7 +27,7 @@ export default Vue.extend({
|
||||||
},
|
},
|
||||||
open: function (message, action, time) {
|
open: function (message, action, time) {
|
||||||
const toast = { message: message, action: action || (() => { }), isOpen: false, timeout: null }
|
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 })
|
setImmediate(() => { toast.isOpen = true })
|
||||||
if (this.toasts.length > 4) {
|
if (this.toasts.length > 4) {
|
||||||
this.remove(0)
|
this.remove(0)
|
||||||
|
|
Loading…
Reference in New Issue