mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
wip: Remove code for old react-select component #13425
This commit is contained in:
parent
d703b8062f
commit
087ff2fa74
@ -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 });
|
||||
};
|
||||
|
||||
|
@ -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'}
|
||||
/>
|
||||
|
@ -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'}
|
||||
/>
|
||||
|
Loading…
Reference in New Issue
Block a user