Merge pull request #141 from AlexSCorey/48-deleteOrgs

Add alert for org. delete.
This commit is contained in:
Alex Corey
2019-04-05 12:39:38 -04:00
committed by GitHub
8 changed files with 361 additions and 60 deletions

View File

@@ -28,25 +28,26 @@ import VerticalSeparator from '../VerticalSeparator';
class DataListToolbar extends React.Component {
render () {
const {
addUrl,
columns,
isAllSelected,
disableTrashCanIcon,
onSelectAll,
sortedColumnKey,
sortOrder,
addUrl,
showDelete,
showSelectAll,
isAllSelected,
isLookup,
isCompact,
onSort,
onSearch,
onCompact,
onExpand,
add
add,
onOpenDeleteModal
} = this.props;
const showExpandCollapse = (onCompact && onExpand);
return (
<I18n>
{({ i18n }) => (
@@ -115,10 +116,13 @@ class DataListToolbar extends React.Component {
position="top"
>
<Button
className="awx-ToolBarBtn"
variant="plain"
aria-label={i18n._(t`Delete`)}
onClick={onOpenDeleteModal}
isDisabled={disableTrashCanIcon}
>
<TrashAltIcon />
<TrashAltIcon className="awx-ToolBarTrashCanIcon" />
</Button>
</Tooltip>
)}

View File

@@ -80,3 +80,16 @@
.awx-toolbar .pf-l-toolbar__item .pf-c-button.pf-m-plain {
font-size: 18px;
}
.pf-c-button--disabled--BackgroundColor{
background-color: #b7b7b7;
}
.awx-ToolBarBtn{
width: 30px;
}
.awx-ToolBarBtn:hover{
.awx-ToolBarTrashCanIcon {
color:white;
}
background-color:#d9534f;
}