exports[`renders correctly: all permissions 1`] = `
<Fragment>
<ActionsDropdown
+ disabled={false}
label="quality_profiles.actions.name.JavaScript"
>
<ActionsDropdownItem
exports[`renders correctly: copy modal 1`] = `
<Fragment>
<ActionsDropdown
+ disabled={false}
label="quality_profiles.actions.name.JavaScript"
>
<ActionsDropdownItem
exports[`renders correctly: delete modal 1`] = `
<Fragment>
<ActionsDropdown
+ disabled={false}
label="quality_profiles.actions.name.JavaScript"
>
<ActionsDropdownItem
exports[`renders correctly: edit only 1`] = `
<Fragment>
<ActionsDropdown
+ disabled={false}
label="quality_profiles.actions.name.JavaScript"
>
<ActionsDropdownItem
exports[`renders correctly: extend modal 1`] = `
<Fragment>
<ActionsDropdown
+ disabled={false}
label="quality_profiles.actions.name.JavaScript"
>
<ActionsDropdownItem
exports[`renders correctly: no permissions 1`] = `
<Fragment>
<ActionsDropdown
+ disabled={false}
label="quality_profiles.actions.name.JavaScript"
>
<ActionsDropdownItem
exports[`renders correctly: rename modal 1`] = `
<Fragment>
<ActionsDropdown
+ disabled={false}
label="quality_profiles.actions.name.JavaScript"
>
<ActionsDropdownItem
exports[`should not allow to set a profile as the default if the profile has no active rules 1`] = `
<Fragment>
<ActionsDropdown
+ disabled={false}
label="quality_profiles.actions.name.JavaScript"
>
<ActionsDropdownItem
overlayPlacement?: PopupPlacement;
small?: boolean;
toggleClassName?: string;
+ disabled?: boolean;
}
export default function ActionsDropdown(props: ActionsDropdownProps) {
className={classNames('dropdown-toggle', toggleClassName, {
'button-small': small,
})}
+ disabled={props.disabled}
>
<SettingsIcon size={small ? 12 : 14} />
<DropdownIcon className="little-spacer-left" />