Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
1513ed4e
Commit
1513ed4e
authored
Jul 15, 2025
by
devjiwonchoi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
disable button when isPending
parent
8744efc9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
user-preferences.tsx
...s/dev-tools-indicator/dev-tools-info/user-preferences.tsx
+7
-0
No files found.
packages/next/src/next-devtools/dev-overlay/components/errors/dev-tools-indicator/dev-tools-info/user-preferences.tsx
View file @
1513ed4e
...
...
@@ -242,6 +242,7 @@ export function UserPreferencesBody({
onClick=
{
()
=>
restartServer
({
invalidatePersistentCache
:
false
})
}
disabled=
{
isPending
}
>
<
span
>
{
isPending
?
'Restarting...'
:
'Restart'
}
</
span
>
</
button
>
...
...
@@ -268,6 +269,7 @@ export function UserPreferencesBody({
onClick=
{
()
=>
restartServer
({
invalidatePersistentCache
:
true
})
}
disabled=
{
isPending
}
>
<
span
>
{
isPending
?
'Resetting...'
:
'Reset Cache'
}
</
span
>
</
button
>
...
...
@@ -395,6 +397,11 @@ export const DEV_TOOLS_INFO_USER_PREFERENCES_STYLES = css`
}
}
.preference-section button:disabled {
opacity: 0.6;
cursor: not-allowed;
}
:global(.icon) {
width: 18px;
height: 18px;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment