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
cdcc3163
Commit
cdcc3163
authored
Dec 10, 2018
by
Johannes Schill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Variable rename. Did not make sense at all.
parent
856c0ee0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
public/app/features/dashboard/dashgrid/VizTypePicker.tsx
+4
-6
No files found.
public/app/features/dashboard/dashgrid/VizTypePicker.tsx
View file @
cdcc3163
...
...
@@ -28,22 +28,20 @@ export class VizTypePicker extends PureComponent<Props, State> {
};
}
get
filteredPluginListCount
()
{
get
maxSelectedIndex
()
{
const
filteredPluginList
=
this
.
getFilteredPluginList
();
return
filteredPluginList
.
length
;
return
filteredPluginList
.
length
-
1
;
}
goRight
=
()
=>
{
const
maxArray
=
this
.
filteredPluginListCount
-
1
;
const
nextIndex
=
this
.
state
.
selected
>=
maxArray
?
0
:
this
.
state
.
selected
+
1
;
const
nextIndex
=
this
.
state
.
selected
>=
this
.
maxSelectedIndex
?
0
:
this
.
state
.
selected
+
1
;
this
.
setState
({
selected
:
nextIndex
,
});
};
goLeft
=
()
=>
{
const
maxArray
=
this
.
filteredPluginListCount
-
1
;
const
nextIndex
=
this
.
state
.
selected
<=
0
?
maxArray
:
this
.
state
.
selected
-
1
;
const
nextIndex
=
this
.
state
.
selected
<=
0
?
this
.
maxSelectedIndex
:
this
.
state
.
selected
-
1
;
this
.
setState
({
selected
:
nextIndex
,
});
...
...
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