From d838bcdc34ede4129a5affa4ee6497af8ca30b99 Mon Sep 17 00:00:00 2001 From: Dennise Bartlett Date: Tue, 8 Jul 2025 17:56:38 -0700 Subject: [PATCH] Fix account buttons (#4742) * Update links for account buttons * add dashboard url * setup links for future changes --------- Co-authored-by: frostbournesb --- webview-ui/src/components/account/AccountView.tsx | 10 ++++++---- webview-ui/src/components/chat/CreditLimitError.tsx | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/webview-ui/src/components/account/AccountView.tsx b/webview-ui/src/components/account/AccountView.tsx index 414e6acb..9c05c594 100644 --- a/webview-ui/src/components/account/AccountView.tsx +++ b/webview-ui/src/components/account/AccountView.tsx @@ -52,6 +52,10 @@ export const ClineAccountView = () => { const [usageData, setUsageData] = useState([]) const [paymentsData, setPaymentsData] = useState([]) + const dashboardAddCreditsURL = activeOrganization + ? "https://app.cline.bot/dashboard/organization?tab=credits&redirect=true" + : "https://app.cline.bot/dashboard/account?tab=credits&redirect=true" + async function getUserCredits() { setIsLoading(true) try { @@ -204,8 +208,7 @@ export const ClineAccountView = () => {
- {/* TODO: Update to get url for dashboard from EXT */} - + Dashboard
@@ -237,8 +240,7 @@ export const ClineAccountView = () => {
- {/* TODO: Update to get url for dashboard from EXT */} - + Add Credits
diff --git a/webview-ui/src/components/chat/CreditLimitError.tsx b/webview-ui/src/components/chat/CreditLimitError.tsx index ea59d7ef..9500d28d 100644 --- a/webview-ui/src/components/chat/CreditLimitError.tsx +++ b/webview-ui/src/components/chat/CreditLimitError.tsx @@ -30,7 +30,7 @@ const CreditLimitError: React.FC = ({ currentBalance, tot