Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
5d6af607
Unverified
Commit
5d6af607
authored
Jun 03, 2020
by
Harrison Shoff
Committed by
GitHub
Jun 03, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Variables: change VariableEditorList row action Icon to IconButton (#25217)
Fixes #21807
parent
467348bd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
public/app/features/variables/editor/VariableEditorList.tsx
+13
-13
No files found.
public/app/features/variables/editor/VariableEditorList.tsx
View file @
5d6af607
import
React
,
{
MouseEvent
,
PureComponent
}
from
'react'
;
import
{
Icon
}
from
'@grafana/ui'
;
import
{
Icon
Button
}
from
'@grafana/ui'
;
import
{
selectors
}
from
'@grafana/e2e-selectors'
;
import
EmptyListCTA
from
'../../../core/components/EmptyListCTA/EmptyListCTA'
;
...
...
@@ -111,9 +111,10 @@ export class VariableEditorList extends PureComponent<Props> {
<
td
style=
{
{
width
:
'1%'
}
}
>
{
index
>
0
&&
(
<
Icon
<
Icon
Button
onClick=
{
event
=>
this
.
onChangeVariableOrder
(
event
,
variable
,
MoveType
.
up
)
}
name=
"arrow-up"
title=
"Move variable up"
aria
-
label=
{
selectors
.
pages
.
Dashboard
.
Settings
.
Variables
.
List
.
tableRowArrowUpButtons
(
variable
.
name
)
}
...
...
@@ -122,9 +123,10 @@ export class VariableEditorList extends PureComponent<Props> {
</
td
>
<
td
style=
{
{
width
:
'1%'
}
}
>
{
index
<
this
.
props
.
variables
.
length
-
1
&&
(
<
Icon
<
Icon
Button
onClick=
{
event
=>
this
.
onChangeVariableOrder
(
event
,
variable
,
MoveType
.
down
)
}
name=
"arrow-down"
title=
"Move variable down"
aria
-
label=
{
selectors
.
pages
.
Dashboard
.
Settings
.
Variables
.
List
.
tableRowArrowDownButtons
(
variable
.
name
)
}
...
...
@@ -132,26 +134,24 @@ export class VariableEditorList extends PureComponent<Props> {
)
}
</
td
>
<
td
style=
{
{
width
:
'1%'
}
}
>
<
a
<
IconButton
onClick=
{
event
=>
this
.
onDuplicateVariable
(
event
,
toVariableIdentifier
(
variable
))
}
className=
"btn btn-inverse btn-small"
name=
"copy"
title=
"Duplicate variable"
aria
-
label=
{
selectors
.
pages
.
Dashboard
.
Settings
.
Variables
.
List
.
tableRowDuplicateButtons
(
variable
.
name
)
}
>
Duplicate
</
a
>
/>
</
td
>
<
td
style=
{
{
width
:
'1%'
}
}
>
<
a
<
IconButton
onClick=
{
event
=>
this
.
onRemoveVariable
(
event
,
toVariableIdentifier
(
variable
))
}
className=
"btn btn-danger btn-small"
name=
"trash-alt"
title=
"Remove variable"
aria
-
label=
{
selectors
.
pages
.
Dashboard
.
Settings
.
Variables
.
List
.
tableRowRemoveButtons
(
variable
.
name
)
}
>
<
Icon
name=
"times"
style=
{
{
marginBottom
:
0
}
}
/>
</
a
>
/>
</
td
>
</
tr
>
);
...
...
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