feat: Add button loading states

This commit is contained in:
gpt-engineer-app[bot]
2025-11-04 18:11:31 +00:00
parent 2deab69ebe
commit 6b5be8a70b
11 changed files with 98 additions and 23 deletions

View File

@@ -777,9 +777,10 @@ export const SystemActivityLog = forwardRef<SystemActivityLogRef, SystemActivity
variant="outline"
size="sm"
onClick={handleRefresh}
disabled={isRefreshing}
loading={isRefreshing}
loadingText="Refreshing..."
>
<RefreshCw className={`h-4 w-4 mr-2 ${isRefreshing ? 'animate-spin' : ''}`} />
<RefreshCw className="h-4 w-4 mr-2" />
Refresh
</Button>
{showFilters && (