Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Metabase
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Engineering Digital Service
Metabase
Commits
52e2895a
Unverified
Commit
52e2895a
authored
2 years ago
by
Nick Fitzpatrick
Committed by
GitHub
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
fixing button variant mapping for dashcard parameter filters (#24688)
parent
d84547eb
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
frontend/src/metabase/dashboard/components/DashCardCardParameterMapper.jsx
+9
-9
9 additions, 9 deletions
...base/dashboard/components/DashCardCardParameterMapper.jsx
with
9 additions
and
9 deletions
frontend/src/metabase/dashboard/components/DashCardCardParameterMapper.jsx
+
9
−
9
View file @
52e2895a
...
...
@@ -112,22 +112,22 @@ function DashCardCardParameterMapper({
useMemo
(()
=>
{
if
(
!
hasPermissionsToMap
)
{
return
{
v
ariant
:
"
unauthed
"
,
t
ooltip
:
t
`You don’t have permission to see this question’s columns.`
,
t
ext
:
null
,
buttonV
ariant
:
"
unauthed
"
,
buttonT
ooltip
:
t
`You don’t have permission to see this question’s columns.`
,
buttonT
ext
:
null
,
buttonIcon
:
<
KeyIcon
/>,
};
}
else
if
(
isDisabled
&&
!
isVirtual
)
{
return
{
v
ariant
:
"
disabled
"
,
t
ooltip
:
t
`This card doesn't have any fields or parameters that can be mapped to this parameter type.`
,
buttonV
ariant
:
"
disabled
"
,
buttonT
ooltip
:
t
`This card doesn't have any fields or parameters that can be mapped to this parameter type.`
,
buttonText
:
t
`No valid fields`
,
buttonIcon
:
null
,
};
}
else
if
(
selectedMappingOption
)
{
return
{
v
ariant
:
"
mapped
"
,
t
ooltip
:
null
,
buttonV
ariant
:
"
mapped
"
,
buttonT
ooltip
:
null
,
buttonText
:
formatSelected
(
selectedMappingOption
),
buttonIcon
:
(
<
CloseIconButton
...
...
@@ -140,8 +140,8 @@ function DashCardCardParameterMapper({
};
}
else
{
return
{
v
ariant
:
"
default
"
,
t
ooltip
:
null
,
buttonV
ariant
:
"
default
"
,
buttonT
ooltip
:
null
,
buttonText
:
t
`Select…`
,
buttonIcon
:
<
ChevrondownIcon
/>,
};
...
...
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