mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-03 17:19:42 +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
|
// @TODO the notifications always close even if timeout is false
|
||||||
let timeout = this.notification.hasOwnProperty('timeout') ? this.notification.timeout : true;
|
let timeout = this.notification.hasOwnProperty('timeout') ? this.notification.timeout : true;
|
||||||
if (timeout) {
|
if (timeout) {
|
||||||
let delay = this.notification.delay || 500;
|
let delay = this.notification.delay || 1500;
|
||||||
delay += this.$store.state.notificationStore.length * 500;
|
delay += this.$store.state.notificationStore.length * 1000;
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.show = false;
|
this.show = false;
|
||||||
}, delay);
|
}, delay);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue