From fb9021e9e1f7dd2db5f5aabcbafcbe4c02f35c06 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Wed, 30 Apr 2025 22:36:10 -0400 Subject: [PATCH] fix: Allow saving OAuth app without description --- app/scenes/Settings/Application.tsx | 8 ++++++-- shared/i18n/locales/en_US/translation.json | 2 ++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/app/scenes/Settings/Application.tsx b/app/scenes/Settings/Application.tsx index 84b781726d..4aaf1f471c 100644 --- a/app/scenes/Settings/Application.tsx +++ b/app/scenes/Settings/Application.tsx @@ -80,11 +80,16 @@ const Application = observer(function Application({ oauthClient }: Props) { async (data: FormData) => { try { await oauthClient.save(data); + toast.success( + oauthClient.published + ? t("Application published") + : t("Application updated") + ); } catch (error) { toast.error(error.message); } }, - [oauthClient] + [oauthClient, t] ); const handleRotateSecret = React.useCallback(async () => { @@ -173,7 +178,6 @@ const Application = observer(function Application({ oauthClient }: Props) { developer documentation.": "API keys can be used to authenticate with the API and programatically control\n your workspace's data. For more details see the developer documentation.", + "Application published": "Application published", + "Application updated": "Application updated", "Client secret rotated": "Client secret rotated", "Rotate secret": "Rotate secret", "Rotating the client secret will invalidate the current secret. Make sure to update any applications using these credentials.": "Rotating the client secret will invalidate the current secret. Make sure to update any applications using these credentials.",