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
d703b806
Commit
d703b806
authored
Oct 07, 2018
by
Johannes Schill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wip: The pickers are stateful nowadays, no need to pass in the current value #13425
parent
d9434ba1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
public/app/core/components/PermissionList/AddPermission.tsx
+2
-3
No files found.
public/app/core/components/PermissionList/AddPermission.tsx
View file @
d703b806
...
@@ -110,13 +110,13 @@ class AddPermissions extends Component<Props, NewDashboardAclItem> {
...
@@ -110,13 +110,13 @@ class AddPermissions extends Component<Props, NewDashboardAclItem> {
{
newItem
.
type
===
AclTarget
.
User
?
(
{
newItem
.
type
===
AclTarget
.
User
?
(
<
div
className=
"gf-form"
>
<
div
className=
"gf-form"
>
<
UserPicker
onSelected=
{
this
.
onUserSelected
}
value=
{
newItem
.
userId
}
className=
{
pickerClassName
}
/>
<
UserPicker
onSelected=
{
this
.
onUserSelected
}
className=
{
pickerClassName
}
/>
</
div
>
</
div
>
)
:
null
}
)
:
null
}
{
newItem
.
type
===
AclTarget
.
Team
?
(
{
newItem
.
type
===
AclTarget
.
Team
?
(
<
div
className=
"gf-form"
>
<
div
className=
"gf-form"
>
<
TeamPicker
onSelected=
{
this
.
onTeamSelected
}
value=
{
newItem
.
teamId
}
className=
{
pickerClassName
}
/>
<
TeamPicker
onSelected=
{
this
.
onTeamSelected
}
className=
{
pickerClassName
}
/>
</
div
>
</
div
>
)
:
null
}
)
:
null
}
...
@@ -124,7 +124,6 @@ class AddPermissions extends Component<Props, NewDashboardAclItem> {
...
@@ -124,7 +124,6 @@ class AddPermissions extends Component<Props, NewDashboardAclItem> {
<
DescriptionPicker
<
DescriptionPicker
optionsWithDesc=
{
dashboardPermissionLevels
}
optionsWithDesc=
{
dashboardPermissionLevels
}
onSelected=
{
this
.
onPermissionChanged
}
onSelected=
{
this
.
onPermissionChanged
}
value=
{
newItem
.
permission
}
disabled=
{
false
}
disabled=
{
false
}
className=
{
'gf-form-input--form-dropdown-right'
}
className=
{
'gf-form-input--form-dropdown-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