From: Dessalines Date: Wed, 24 Jun 2020 01:40:59 +0000 (-0400) Subject: Adding timeouts to message and delete picture notifications. #834 X-Git-Url: http://these/git/%7B%60https:/%7B%60css/themes/%22https:/nerdica.net/%7BdocsUrl%7D?a=commitdiff_plain;h=b94d38072982081803605f7439aeaa61af335db2;p=lemmy.git Adding timeouts to message and delete picture notifications. #834 --- diff --git a/ui/src/utils.ts b/ui/src/utils.ts index bdb9afbd..f01a8494 100644 --- a/ui/src/utils.ts +++ b/ui/src/utils.ts @@ -527,7 +527,7 @@ export function pictrsDeleteToast( backgroundColor: backgroundColor, gravity: 'top', position: 'right', - duration: 0, + duration: 10000, onClick: () => { if (toast) { window.location.replace(deleteUrl); @@ -556,7 +556,7 @@ export function messageToastify( close: true, gravity: 'top', position: 'right', - duration: 0, + duration: 5000, onClick: () => { if (toast) { toast.hideToast();