Skip to content

Commit e00d9a8

Browse files
fix(web): keep one disabled rule on the usage refresh button
The rebase left the refresh control with two disabled props; refreshing is blocked while a rescan runs or when nothing can read diagnostics. Co-Authored-By: Claude Fable 5 <[email protected]>
1 parent 7e33a03 commit e00d9a8

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

‎apps/web/src/components/usage/UsagePage.tsx‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -266,10 +266,9 @@ export function UsagePage() {
266266
</ToggleGroup>
267267
<Button
268268
onClick={refreshWindow}
269-
disabled={!showingLimits && !canReadDiagnostics}
270269
aria-label={showingLimits ? "Refresh limits" : "Refresh usage"}
271270
aria-busy={isRefreshing}
272-
disabled={isRefreshing}
271+
disabled={isRefreshing || (!showingLimits && !canReadDiagnostics)}
273272
size="icon-sm"
274273
variant="ghost"
275274
>
@@ -326,10 +325,9 @@ export function UsagePage() {
326325
</Select>
327326
<Button
328327
onClick={refreshWindow}
329-
disabled={!showingLimits && !canReadDiagnostics}
330328
aria-label={showingLimits ? "Refresh limits" : "Refresh usage"}
331329
aria-busy={isRefreshing}
332-
disabled={isRefreshing}
330+
disabled={isRefreshing || (!showingLimits && !canReadDiagnostics)}
333331
size="icon-sm"
334332
variant="ghost"
335333
>

0 commit comments

Comments
 (0)