fix(notifications): extend snackbar duration

This commit is contained in:
SabreCat 2017-11-16 20:32:57 +00:00
parent 9f7c0b4861
commit 42a05446c0

View file

@ -126,8 +126,8 @@ export default {
// @TODO the notifications always close even if timeout is false
let timeout = this.notification.hasOwnProperty('timeout') ? this.notification.timeout : true;
if (timeout) {
let delay = this.notification.delay || 500;
delay += this.$store.state.notificationStore.length * 500;
let delay = this.notification.delay || 1500;
delay += this.$store.state.notificationStore.length * 1000;
setTimeout(() => {
this.show = false;
}, delay);