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
5deebc07
Commit
5deebc07
authored
9 years ago
by
Kyle Doherty
Browse files
Options
Downloads
Patches
Plain Diff
add filter to icon component
parent
12189946
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
resources/frontend_client/app/query_builder/gui_query_editor.react.js
+1
-3
1 addition, 3 deletions
...ontend_client/app/query_builder/gui_query_editor.react.js
resources/frontend_client/app/query_builder/icon.react.js
+1
-0
1 addition, 0 deletions
resources/frontend_client/app/query_builder/icon.react.js
with
2 additions
and
3 deletions
resources/frontend_client/app/query_builder/gui_query_editor.react.js
+
1
−
3
View file @
5deebc07
...
...
@@ -467,9 +467,7 @@ var GuiQueryEditor = React.createClass({
this
.
state
.
options
.
fields
.
length
>
0
)
{
return
(
<
a
className
=
"
ml2
"
onClick
=
{
this
.
addFilter
}
>
<
svg
className
=
"
icon
"
width
=
"
16px
"
height
=
"
16px
"
viewBox
=
"
0 0 16 16
"
fill
=
"
currentColor
"
>
<
path
d
=
"
M6.57883011,7.57952565 L1.18660637e-12,-4.86721774e-13 L16,-4.92050845e-13 L9.42116989,7.57952565 L9.42116989,13.5542169 L6.57883011,15 L6.57883011,7.57952565 Z
"
><
/path
>
<
/svg
>
<
Icon
name
=
'
filter
'
width
=
{
16
}
height
=
{
16
}
viewBox
=
'
0 0 16 16
'
/>
Filter
{(
this
.
state
.
options
)
?
this
.
state
.
options
.
name
:
""
}
<
/a
>
);
...
...
This diff is collapsed.
Click to expand it.
resources/frontend_client/app/query_builder/icon.react.js
+
1
−
0
View file @
5deebc07
...
...
@@ -14,6 +14,7 @@ var Icon = React.createClass({
'
M16,31 L16,31 C24.2842712,31 31,24.2842712 31,16 C31,7.71572875 24.2842712,1 16,1 C7.71572875,1 1,7.71572875 1,16 C1,24.2842712 7.71572875,31 16,31 L16,31 Z M16,32 L16,32 C7.163444,32 0,24.836556 0,16 C0,7.163444 7.163444,0 16,0 C24.836556,0 32,7.163444 32,16 C32,24.836556 24.836556,32 16,32 L16,32 Z
'
],
expand
:
'
M16 4 L28 4 L28 16 L24 12 L20 16 L16 12 L20 8z M4 16 L8 20 L12 16 L16 20 L12 24 L16 28 L4 28z
'
,
filter
:
'
M6.57883011,7.57952565 L1.18660637e-12,-4.86721774e-13 L16,-4.92050845e-13 L9.42116989,7.57952565 L9.42116989,13.5542169 L6.57883011,15 L6.57883011,7.57952565 Z
'
,
},
getDefaultProps
:
function
()
{
return
{
...
...
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