Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
Frontend V2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GraphPolaris
Frontend V2
Commits
c3f7e48e
Commit
c3f7e48e
authored
1 year ago
by
Leonardo Christino
Browse files
Options
Downloads
Patches
Plain Diff
chore: gray out user buttons when they are disabled
solves #DEV-140
parent
60e7f1d4
No related branches found
No related tags found
1 merge request
!51
chore: gray out user buttons when they are disabled
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
apps/web/src/components/navbar/navbar.tsx
+2
-2
2 additions, 2 deletions
apps/web/src/components/navbar/navbar.tsx
with
2 additions
and
2 deletions
apps/web/src/components/navbar/navbar.tsx
+
2
−
2
View file @
c3f7e48e
...
...
@@ -129,7 +129,7 @@ export const Navbar = (props: NavbarComponentProps) => {
e
.
stopPropagation
();
setSubMenuOpen
(
subMenuOpen
===
'
changeDb
'
?
undefined
:
'
changeDb
'
);
}
}
className
=
{
`
${
session
.
databases
.
length
===
0
?
'
btn-disabled
'
:
''
}
${
className
=
{
`
${
session
.
databases
.
length
===
0
?
'
btn-disabled
text-gray-300
'
:
''
}
${
subMenuOpen
===
'
changeDb
'
?
'
btn-active
'
:
''
}
`
}
>
...
...
@@ -150,7 +150,7 @@ export const Navbar = (props: NavbarComponentProps) => {
<
li
>
<
button
onClick
=
{
()
=>
setSubMenuOpen
(
subMenuOpen
===
'
deleteDb
'
?
undefined
:
'
deleteDb
'
)
}
className
=
{
`
${
session
.
databases
.
length
===
0
?
'
btn-disabled
'
:
''
}
${
className
=
{
`
${
session
.
databases
.
length
===
0
?
'
btn-disabled
text-gray-300
'
:
''
}
${
subMenuOpen
===
'
deleteDb
'
?
'
btn-active
'
:
''
}
`
}
>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment