fix(snackbars): don't timeout server error snacks (#10372)

Fixes #10031 and #9249.
This commit is contained in:
Sabe Jones
2018-05-18 14:41:15 -05:00
committed by Keith Holliday
parent 026e1a5bca
commit 25d07ac0ce
2 changed files with 1 additions and 2 deletions

View File

@@ -325,7 +325,7 @@ export default {
title: 'Habitica',
text: errorMessage,
type: 'error',
timeout: true,
timeout: false,
});
}

View File

@@ -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;