From 25d07ac0cecb5849e77fd1e1e2832ed8525c4c9f Mon Sep 17 00:00:00 2001 From: Sabe Jones Date: Fri, 18 May 2018 14:41:15 -0500 Subject: [PATCH] fix(snackbars): don't timeout server error snacks (#10372) Fixes #10031 and #9249. --- website/client/app.vue | 2 +- website/client/components/snackbars/notification.vue | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/website/client/app.vue b/website/client/app.vue index 02807e356a..8471bb1adb 100644 --- a/website/client/app.vue +++ b/website/client/app.vue @@ -325,7 +325,7 @@ export default { title: 'Habitica', text: errorMessage, type: 'error', - timeout: true, + timeout: false, }); } diff --git a/website/client/components/snackbars/notification.vue b/website/client/components/snackbars/notification.vue index ec544e6c93..256806f6dc 100644 --- a/website/client/components/snackbars/notification.vue +++ b/website/client/components/snackbars/notification.vue @@ -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;