if response for bulk download, dont close toast

This commit is contained in:
Mary Hipp 2023-12-04 13:55:13 -05:00 committed by psychedelicious
parent 0fdcc0af65
commit e45704833e
2 changed files with 14 additions and 2 deletions

View File

@ -73,7 +73,13 @@ const BoardContextMenu = ({
addToast({
title: t('gallery.preparingDownload'),
status: 'success',
...(response.response ? { description: response.response } : {}),
...(response.response
? {
description: response.response,
duration: null,
isClosable: true,
}
: {}),
})
);
} catch {

View File

@ -59,7 +59,13 @@ const MultipleSelectionMenuItems = () => {
addToast({
title: t('gallery.preparingDownload'),
status: 'success',
...(response.response ? { description: response.response } : {}),
...(response.response
? {
description: response.response,
duration: null,
isClosable: true,
}
: {}),
})
);
} catch {