mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 06:37:23 +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',
|
||||
text: errorMessage,
|
||||
type: 'error',
|
||||
timeout: true,
|
||||
timeout: false,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -130,7 +130,6 @@ export default {
|
||||
};
|
||||
},
|
||||
created () {
|
||||
// @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 || 1500;
|
||||
|
||||
Reference in New Issue
Block a user