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
087ff2fa
Commit
087ff2fa
authored
Oct 07, 2018
by
Johannes Schill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wip: Remove code for old react-select component #13425
parent
d703b806
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 additions
and
7 deletions
+1
-7
public/app/core/components/PermissionList/AddPermission.tsx
+1
-5
public/app/core/components/PermissionList/DisabledPermissionListItem.tsx
+0
-1
public/app/core/components/PermissionList/PermissionListItem.tsx
+0
-1
No files found.
public/app/core/components/PermissionList/AddPermission.tsx
View file @
087ff2fa
...
...
@@ -17,10 +17,6 @@ export interface Props {
onCancel
:
()
=>
void
;
}
export
interface
TeamSelectedAction
{
action
:
string
;
}
class
AddPermissions
extends
Component
<
Props
,
NewDashboardAclItem
>
{
constructor
(
props
)
{
super
(
props
);
...
...
@@ -57,7 +53,7 @@ class AddPermissions extends Component<Props, NewDashboardAclItem> {
this
.
setState
({
userId
:
user
&&
!
Array
.
isArray
(
user
)
?
user
.
id
:
0
});
};
onTeamSelected
=
(
team
:
Team
,
info
:
TeamSelectedAction
)
=>
{
onTeamSelected
=
(
team
:
Team
)
=>
{
this
.
setState
({
teamId
:
team
&&
!
Array
.
isArray
(
team
)
?
team
.
id
:
0
});
};
...
...
public/app/core/components/PermissionList/DisabledPermissionListItem.tsx
View file @
087ff2fa
...
...
@@ -26,7 +26,6 @@ export default class DisabledPermissionListItem extends Component<Props, any> {
<
DescriptionPicker
optionsWithDesc=
{
dashboardPermissionLevels
}
onSelected=
{
()
=>
{}
}
value=
{
item
.
permission
}
disabled=
{
true
}
className=
{
'gf-form-input--form-dropdown-right'
}
/>
...
...
public/app/core/components/PermissionList/PermissionListItem.tsx
View file @
087ff2fa
...
...
@@ -77,7 +77,6 @@ export default class PermissionsListItem extends PureComponent<Props> {
<
DescriptionPicker
optionsWithDesc=
{
dashboardPermissionLevels
}
onSelected=
{
this
.
onPermissionChanged
}
value=
{
item
.
permission
}
disabled=
{
item
.
inherited
}
className=
{
'gf-form-select2__control--menu-right'
}
/>
...
...
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