Adding timeouts to message and delete picture notifications. #834
This commit is contained in:
parent
790b944031
commit
b94d380729
1 changed files with 2 additions and 2 deletions
4
ui/src/utils.ts
vendored
4
ui/src/utils.ts
vendored
|
@ -527,7 +527,7 @@ export function pictrsDeleteToast(
|
||||||
backgroundColor: backgroundColor,
|
backgroundColor: backgroundColor,
|
||||||
gravity: 'top',
|
gravity: 'top',
|
||||||
position: 'right',
|
position: 'right',
|
||||||
duration: 0,
|
duration: 10000,
|
||||||
onClick: () => {
|
onClick: () => {
|
||||||
if (toast) {
|
if (toast) {
|
||||||
window.location.replace(deleteUrl);
|
window.location.replace(deleteUrl);
|
||||||
|
@ -556,7 +556,7 @@ export function messageToastify(
|
||||||
close: true,
|
close: true,
|
||||||
gravity: 'top',
|
gravity: 'top',
|
||||||
position: 'right',
|
position: 'right',
|
||||||
duration: 0,
|
duration: 5000,
|
||||||
onClick: () => {
|
onClick: () => {
|
||||||
if (toast) {
|
if (toast) {
|
||||||
toast.hideToast();
|
toast.hideToast();
|
||||||
|
|
Loading…
Reference in a new issue