From 630a4feab1bbe78591b630a137aca70a852c8e50 Mon Sep 17 00:00:00 2001 From: Rogee Date: Mon, 28 Sep 2026 14:33:54 +0800 Subject: [PATCH] fix(web): use text buttons for table row actions --- .../components/accounts/AccountManagementList.tsx | 6 +++--- .../components/accounts/MonitoringAccountList.tsx | 8 ++++---- web/src/pages/accounts/import.tsx | 2 +- web/src/pages/browsers/index.tsx | 5 +++-- web/src/pages/gateways/index.tsx | 4 ++-- web/src/pages/network-exits/index.tsx | 12 ++++++------ web/src/pages/tasks/index.tsx | 2 +- 7 files changed, 20 insertions(+), 19 deletions(-) diff --git a/web/src/components/accounts/AccountManagementList.tsx b/web/src/components/accounts/AccountManagementList.tsx index ffda90a..eae7efa 100644 --- a/web/src/components/accounts/AccountManagementList.tsx +++ b/web/src/components/accounts/AccountManagementList.tsx @@ -131,10 +131,10 @@ export default function AccountManagementList() { align: 'right', render: (_, account) => ( - - deleteAccount(account)} disabled={actionBusy === account.id} > - diff --git a/web/src/components/accounts/MonitoringAccountList.tsx b/web/src/components/accounts/MonitoringAccountList.tsx index a09c1c8..93d3ba7 100644 --- a/web/src/components/accounts/MonitoringAccountList.tsx +++ b/web/src/components/accounts/MonitoringAccountList.tsx @@ -182,9 +182,9 @@ export default function MonitoringAccountList() { align: 'right', render: (_, account) => ( - - - + + deleteAccount(account)} disabled={actionBusy === account.id} > - + ), diff --git a/web/src/pages/accounts/import.tsx b/web/src/pages/accounts/import.tsx index ecbe91c..71db2c7 100644 --- a/web/src/pages/accounts/import.tsx +++ b/web/src/pages/accounts/import.tsx @@ -160,7 +160,7 @@ export default function Page() { align: 'right', render: (_, job) => job.status === 'failed' ? ( - ) : ( diff --git a/web/src/pages/browsers/index.tsx b/web/src/pages/browsers/index.tsx index da12a0f..58435f9 100644 --- a/web/src/pages/browsers/index.tsx +++ b/web/src/pages/browsers/index.tsx @@ -132,6 +132,7 @@ export default function Page() { return ( - handleRecycle(runtime)}> - diff --git a/web/src/pages/gateways/index.tsx b/web/src/pages/gateways/index.tsx index 76297be..5b5b638 100644 --- a/web/src/pages/gateways/index.tsx +++ b/web/src/pages/gateways/index.tsx @@ -154,11 +154,11 @@ export default function Page() { align: 'right', render: (_, gateway) => ( - removeGateway(gateway)}> - diff --git a/web/src/pages/network-exits/index.tsx b/web/src/pages/network-exits/index.tsx index e3c686b..7469a04 100644 --- a/web/src/pages/network-exits/index.tsx +++ b/web/src/pages/network-exits/index.tsx @@ -245,25 +245,25 @@ export default function Page() { align: 'right', render: (_, exit) => ( - {exit.health_status === 'disabled' ? ( - ) : ( runAction(exit, 'disable')}> - )} - deleteExit(exit)}> - @@ -289,7 +289,7 @@ export default function Page() { style={{ marginBottom: 16 }} title={`环境不可用${bindingsError.status ? `(${bindingsError.status})` : ''}:无法读取账号绑定,状态暂时未知。`} action={ - } diff --git a/web/src/pages/tasks/index.tsx b/web/src/pages/tasks/index.tsx index d1f4293..426f3af 100644 --- a/web/src/pages/tasks/index.tsx +++ b/web/src/pages/tasks/index.tsx @@ -130,7 +130,7 @@ export default function Page() { key: 'actions', align: 'right', render: (_, task) => ( - ),