Commit d703b806 by Johannes Schill

wip: The pickers are stateful nowadays, no need to pass in the current value #13425

parent d9434ba1
...@@ -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'}
/> />
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment