From 09ca243f0d7b29f66173530b84e412bf2ba4ca5f Mon Sep 17 00:00:00 2001
From: Stephen Zhou <38493346+hyoban@users.noreply.github.com>
Date: Thu, 2 Apr 2026 16:59:58 +0800
Subject: [PATCH] tweaks
---
web/app/account/oauth/authorize/page.tsx | 13 ++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)
diff --git a/web/app/account/oauth/authorize/page.tsx b/web/app/account/oauth/authorize/page.tsx
index 69342f24b03..4ff4bf861a0 100644
--- a/web/app/account/oauth/authorize/page.tsx
+++ b/web/app/account/oauth/authorize/page.tsx
@@ -69,7 +69,6 @@ export default function OAuthAuthorize() {
const { isLoading: isIsLoginLoading, data: loginData } = useIsLogin()
const isLoggedIn = loginData?.logged_in
const isLoading = isOAuthLoading || isIsLoginLoading
- const isActionDisabled = !client_id || !redirect_uri || isError || isLoading || authorizing
const onLoginSwitchClick = () => {
if (isLoading)
return
@@ -116,13 +115,13 @@ export default function OAuthAuthorize() {
)}
-
+
{isLoggedIn &&
{t('connect', { ns: 'oauth' })}
}
{authAppInfo?.app_label[language] || authAppInfo?.app_label?.en_US || t('unknownApp', { ns: 'oauth' })}
{!isLoggedIn &&
{t('tips.notLoggedIn', { ns: 'oauth' })}
}
-
{isLoggedIn ? `${authAppInfo?.app_label[language] || authAppInfo?.app_label?.en_US || t('unknownApp', { ns: 'oauth' })} ${t('tips.loggedIn', { ns: 'oauth' })}` : t('tips.needLogin', { ns: 'oauth' })}
+
{isLoggedIn ? `${authAppInfo?.app_label[language] || authAppInfo?.app_label?.en_US || t('unknownApp', { ns: 'oauth' })} ${t('tips.loggedIn', { ns: 'oauth' })}` : t('tips.needLogin', { ns: 'oauth' })}
{isLoggedIn && userProfile && (
@@ -131,7 +130,7 @@ export default function OAuthAuthorize() {
{userProfile.name}
-
{userProfile.email}
+
{userProfile.email}
@@ -143,7 +142,7 @@ export default function OAuthAuthorize() {
{authAppInfo!.scope.split(/\s+/).filter(Boolean).map((scope: string) => {
const Icon = SCOPE_INFO_MAP[scope]
return (
-
+
{Icon ? : }
{Icon.label}
@@ -159,7 +158,7 @@ export default function OAuthAuthorize() {
)
: (
<>
-
+
>
)}
@@ -176,7 +175,7 @@ export default function OAuthAuthorize() {
- {t('tips.common', { ns: 'oauth' })}
+ {t('tips.common', { ns: 'oauth' })}
)
}