diff --git a/web/app/components/plugins/plugin-auth/authorize/add-oauth-button.tsx b/web/app/components/plugins/plugin-auth/authorize/add-oauth-button.tsx index c2a252969e..1372a3a5a8 100644 --- a/web/app/components/plugins/plugin-auth/authorize/add-oauth-button.tsx +++ b/web/app/components/plugins/plugin-auth/authorize/add-oauth-button.tsx @@ -75,20 +75,21 @@ const AddOAuthButton = ({ const renderCustomLabel = useCallback((item: FormSchema) => { return ( -
+
-
-
+
+
{t('plugin.auth.clientInfo')}
{ redirect_uri && ( -
- {redirect_uri} +
+
{redirect_uri}
{ navigator.clipboard.writeText(redirect_uri || '') }} @@ -167,14 +168,16 @@ const AddOAuthButton = ({ buttonLeftClassName, )}> {buttonText} + { + is_oauth_custom_client_enabled && ( + + {t('plugin.auth.custom')} + + ) + }
- { - is_oauth_custom_client_enabled && ( - - {t('plugin.auth.custom')} - - ) - }
redirect_uri?: string }>(url), + staleTime: 0, }) }