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
8ab2d8b0
Commit
8ab2d8b0
authored
Oct 11, 2018
by
Peter Holmberg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix mutability bug, removed unused constructor
parent
d360d8ce
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
8 deletions
+3
-8
public/app/core/components/Picker/DescriptionPicker.tsx
+0
-5
public/app/features/datasources/DataSourcePermissionsList.tsx
+3
-3
No files found.
public/app/core/components/Picker/DescriptionPicker.tsx
View file @
8ab2d8b0
...
@@ -17,11 +17,6 @@ export interface OptionWithDescription {
...
@@ -17,11 +17,6 @@ export interface OptionWithDescription {
}
}
class
DescriptionPicker
extends
Component
<
Props
,
any
>
{
class
DescriptionPicker
extends
Component
<
Props
,
any
>
{
constructor
(
props
)
{
super
(
props
);
this
.
state
=
{};
}
render
()
{
render
()
{
const
{
optionsWithDesc
,
onSelected
,
value
,
disabled
,
className
}
=
this
.
props
;
const
{
optionsWithDesc
,
onSelected
,
value
,
disabled
,
className
}
=
this
.
props
;
...
...
public/app/features/datasources/DataSourcePermissionsList.tsx
View file @
8ab2d8b0
import
React
,
{
PureComponent
}
from
'react'
;
import
React
,
{
PureComponent
}
from
'react'
;
import
{
DataSourcePermission
}
from
'
../..
/types'
;
import
{
DataSourcePermission
}
from
'
app
/types'
;
import
{
dataSourceAclLevels
,
DataSourcePermissionLevel
}
from
'
../..
/types/acl'
;
import
{
dataSourceAclLevels
,
DataSourcePermissionLevel
}
from
'
app
/types/acl'
;
import
DescriptionPicker
from
'../../core/components/Picker/DescriptionPicker'
;
import
DescriptionPicker
from
'../../core/components/Picker/DescriptionPicker'
;
export
interface
Props
{
export
interface
Props
{
...
@@ -41,7 +41,7 @@ export class DataSourcePermissionsList extends PureComponent<Props> {
...
@@ -41,7 +41,7 @@ export class DataSourcePermissionsList extends PureComponent<Props> {
render
()
{
render
()
{
const
{
items
}
=
this
.
props
;
const
{
items
}
=
this
.
props
;
const
permissionLevels
=
dataSourceAclLevels
;
const
permissionLevels
=
[...
dataSourceAclLevels
]
;
permissionLevels
.
push
({
value
:
DataSourcePermissionLevel
.
Admin
,
label
:
'Admin'
,
description
:
''
});
permissionLevels
.
push
({
value
:
DataSourcePermissionLevel
.
Admin
,
label
:
'Admin'
,
description
:
''
});
return
(
return
(
...
...
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