From 548e227f634f58d109929667ed19504152814134 Mon Sep 17 00:00:00 2001 From: Tsu-ba-me Date: Wed, 15 Nov 2023 14:43:18 -0500 Subject: [PATCH] fix(striker-ui): add success message in edit file --- striker-ui/components/Files/EditFileForm.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/striker-ui/components/Files/EditFileForm.tsx b/striker-ui/components/Files/EditFileForm.tsx index 3dfb6334..9da9a019 100644 --- a/striker-ui/components/Files/EditFileForm.tsx +++ b/striker-ui/components/Files/EditFileForm.tsx @@ -111,6 +111,9 @@ const EditFileForm: FC = (props) => { api .put(`/file/${file.uuid}`, body) + .then(() => { + setApiMessage({ children: <>File updated. }); + }) .catch((error) => { const emsg = handleAPIError(error);