From ba2f9301912e5c3822abd339f977d6301fae7f0e Mon Sep 17 00:00:00 2001 From: Alexander Lee Date: Thu, 29 Apr 2021 17:26:49 +0800 Subject: [PATCH] Fix: add successtoast --- src/layouts/Folders.jsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/layouts/Folders.jsx b/src/layouts/Folders.jsx index 080bfb668..44b5af1d5 100644 --- a/src/layouts/Folders.jsx +++ b/src/layouts/Folders.jsx @@ -132,6 +132,7 @@ const Folders = ({ match, location }) => { errorToast(`The page data could not be retrieved. ${DEFAULT_RETRY_MSG}`) }, onSuccess: () => { + successToast(`Successfully updated ${isSelectedItemPage ? 'file' : 'subfolder'}`) queryClient.invalidateQueries([DIR_CONTENT_KEY, siteName, folderName]) refetchFolderContents() },