mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-04-14 19:47:03 +00:00
fix(notifications): extend snackbar duration
This commit is contained in:
parent
9f7c0b4861
commit
42a05446c0
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue