mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
fix(snackbars): don't timeout server error snacks (#10372)
Fixes #10031 and #9249.
This commit is contained in:
committed by
Keith Holliday
parent
026e1a5bca
commit
25d07ac0ce
@@ -325,7 +325,7 @@ export default {
|
|||||||
title: 'Habitica',
|
title: 'Habitica',
|
||||||
text: errorMessage,
|
text: errorMessage,
|
||||||
type: 'error',
|
type: 'error',
|
||||||
timeout: true,
|
timeout: false,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -130,7 +130,6 @@ export default {
|
|||||||
};
|
};
|
||||||
},
|
},
|
||||||
created () {
|
created () {
|
||||||
// @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 || 1500;
|
let delay = this.notification.delay || 1500;
|
||||||
|
|||||||
Reference in New Issue
Block a user