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
39575cea
Unverified
Commit
39575cea
authored
3 years ago
by
Alexander Polyankin
Committed by
GitHub
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Add group mapping on enter (#19718)
parent
5de363b4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
frontend/src/metabase/admin/settings/components/widgets/GroupMappingsWidget.jsx
+12
-9
12 additions, 9 deletions
...admin/settings/components/widgets/GroupMappingsWidget.jsx
with
12 additions
and
9 deletions
frontend/src/metabase/admin/settings/components/widgets/GroupMappingsWidget.jsx
+
12
−
9
View file @
39575cea
...
...
@@ -197,17 +197,17 @@ class AddMappingRow extends React.Component {
};
}
_handle
CancelClick
=
e
=>
{
_handle
Submit
=
e
=>
{
e
.
preventDefault
();
const
{
on
Cancel
}
=
this
.
props
;
on
Cancel
&&
onCancel
(
);
const
{
on
Add
}
=
this
.
props
;
on
Add
&&
onAdd
(
this
.
state
.
value
);
this
.
setState
({
value
:
""
});
};
_handle
Add
Click
=
e
=>
{
_handle
Cancel
Click
=
e
=>
{
e
.
preventDefault
();
const
{
on
Add
}
=
this
.
props
;
on
Add
&&
onAdd
(
this
.
state
.
value
);
const
{
on
Cancel
}
=
this
.
props
;
on
Cancel
&&
onCancel
(
);
this
.
setState
({
value
:
""
});
};
...
...
@@ -219,7 +219,10 @@ class AddMappingRow extends React.Component {
return
(
<
tr
>
<
td
colSpan
=
"3"
style
=
{
{
padding
:
0
}
}
>
<
div
className
=
"my2 pl1 p1 bordered border-brand rounded relative flex align-center"
>
<
form
className
=
"my2 pl1 p1 bordered border-brand rounded relative flex align-center"
onSubmit
=
{
isValid
?
this
.
_handleSubmit
:
undefined
}
>
<
input
className
=
"input--borderless h3 ml1 flex-full"
type
=
"text"
...
...
@@ -234,11 +237,11 @@ class AddMappingRow extends React.Component {
>
{
t
`Cancel`
}
</
span
>
<
Button
className
=
"ml2"
type
=
"submit"
primary
=
{
!!
isValid
}
disabled
=
{
!
isValid
}
onClick
=
{
this
.
_handleAddClick
}
>
{
t
`Add`
}
</
Button
>
</
div
>
</
form
>
</
td
>
</
tr
>
);
...
...
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