initially renders succesfully 1`] = `
ariaHasPopup={true}
className="togglePageSize"
iconComponent={[Function]}
- id="pf-toggle-id-3"
+ id="pf-toggle-id-5"
isActive={false}
isFocused={false}
isHovered={false}
@@ -1310,7 +1643,7 @@ exports[`
initially renders succesfully 1`] = `
aria-expanded="false"
aria-haspopup="true"
class="pf-c-dropdown__toggle togglePageSize"
- id="pf-toggle-id-3"
+ id="pf-toggle-id-5"
type="button"
>
initially renders succesfully 1`] = `
initially renders succesfully 1`] = `
aria-expanded="false"
aria-haspopup="true"
class="pf-c-dropdown__toggle togglePageSize"
- id="pf-toggle-id-3"
+ id="pf-toggle-id-5"
type="button"
>
initially renders succesfully 1`] = `
aria-haspopup={true}
className="pf-c-dropdown__toggle togglePageSize"
disabled={false}
- id="pf-toggle-id-3"
+ id="pf-toggle-id-5"
onClick={[Function]}
onKeyDown={[Function]}
type="button"
diff --git a/src/app.scss b/src/app.scss
index 98e83ef2e5..74d0f4f91b 100644
--- a/src/app.scss
+++ b/src/app.scss
@@ -95,11 +95,15 @@
.pf-c-data-list__item-content {
--pf-c-data-list__item-content--PaddingBottom: 16px;
+
+ min-height: 59px;
+ align-items: center;
}
.pf-c-data-list__item-control {
--pf-c-data-list__item-control--PaddingTop: 16px;
--pf-c-data-list__item-control--MarginRight: 8px;
+ --pf-c-data-list__item-control--PaddingBottom: 16px;
}
.pf-c-data-list__item {
@@ -124,8 +128,9 @@
}
&.pf-c-data-list__cell--divider {
+ --pf-c-data-list__cell-cell--MarginRight: 0;
+ --pf-c-data-list__cell--PaddingTop: 12px;
flex-grow: 0;
- margin-right: 0;
}
}
@@ -246,10 +251,6 @@
overflow-y: auto;
}
-.awx-c-list {
- border-bottom: 1px solid #d7d7d7;
-}
-
.at-c-listCardBody {
--pf-c-card__footer--PaddingX: 0;
--pf-c-card__footer--PaddingY: 0;
diff --git a/src/components/AddRole/AddResourceRole.jsx b/src/components/AddRole/AddResourceRole.jsx
index 5b702b8f27..1b205a7c96 100644
--- a/src/components/AddRole/AddResourceRole.jsx
+++ b/src/components/AddRole/AddResourceRole.jsx
@@ -2,11 +2,7 @@ import React, { Fragment } from 'react';
import PropTypes from 'prop-types';
import { I18n, i18nMark } from '@lingui/react';
import { t } from '@lingui/macro';
-import {
- BackgroundImageSrc,
- Wizard
-} from '@patternfly/react-core';
-
+import { Wizard } from '@patternfly/react-core';
import SelectResourceStep from './SelectResourceStep';
import SelectRoleStep from './SelectRoleStep';
import SelectableCard from './SelectableCard';
@@ -18,12 +14,14 @@ class AddResourceRole extends React.Component {
this.state = {
selectedResource: null,
selectedResourceRows: [],
- selectedRoleRows: []
+ selectedRoleRows: [],
+ currentStepId: 1,
};
this.handleResourceCheckboxClick = this.handleResourceCheckboxClick.bind(this);
this.handleResourceSelect = this.handleResourceSelect.bind(this);
this.handleRoleCheckboxClick = this.handleRoleCheckboxClick.bind(this);
+ this.handleWizardNext = this.handleWizardNext.bind(this);
this.handleWizardSave = this.handleWizardSave.bind(this);
this.readTeams = this.readTeams.bind(this);
this.readUsers = this.readUsers.bind(this);
@@ -69,6 +67,12 @@ class AddResourceRole extends React.Component {
});
}
+ handleWizardNext (step) {
+ this.setState({
+ currentStepId: step.id,
+ });
+ }
+
async handleWizardSave () {
const {
onSave,
@@ -118,22 +122,14 @@ class AddResourceRole extends React.Component {
const {
selectedResource,
selectedResourceRows,
- selectedRoleRows
+ selectedRoleRows,
+ currentStepId,
} = this.state;
const {
onClose,
roles
} = this.props;
- const images = {
- [BackgroundImageSrc.xs]: '/assets/images/pfbg_576.jpg',
- [BackgroundImageSrc.xs2x]: '/assets/images/pfbg_576@2x.jpg',
- [BackgroundImageSrc.sm]: '/assets/images/pfbg_768.jpg',
- [BackgroundImageSrc.sm2x]: '/assets/images/pfbg_768@2x.jpg',
- [BackgroundImageSrc.lg]: '/assets/images/pfbg_2000.jpg',
- [BackgroundImageSrc.filter]: '/assets/images/background-filter.svg#image_overlay'
- };
-
const userColumns = [
{ name: i18nMark('Username'), key: 'username', isSortable: true }
];
@@ -157,6 +153,7 @@ class AddResourceRole extends React.Component {
const steps = [
{
+ id: 1,
name: i18nMark('Select Users Or Teams'),
component: (
@@ -179,6 +176,7 @@ class AddResourceRole extends React.Component {
enableNext: selectedResource !== null
},
{
+ id: 2,
name: i18nMark('Select items from list'),
component: (
@@ -215,6 +213,7 @@ class AddResourceRole extends React.Component {
enableNext: selectedResourceRows.length > 0
},
{
+ id: 3,
name: i18nMark('Apply roles'),
component: (
@@ -230,25 +229,23 @@ class AddResourceRole extends React.Component {
)}
),
+ nextButtonText: i18nMark('Save'),
enableNext: selectedRoleRows.length > 0
}
];
+ const currentStep = steps.find(step => step.id === currentStepId);
+
return (
-
- {({ i18n }) => (
-
- )}
-
+
);
}
}
diff --git a/src/components/AddRole/CheckboxCard.jsx b/src/components/AddRole/CheckboxCard.jsx
index 5486fa05f3..375cf2d193 100644
--- a/src/components/AddRole/CheckboxCard.jsx
+++ b/src/components/AddRole/CheckboxCard.jsx
@@ -10,7 +10,7 @@ class CheckboxCard extends Component {
return (
-
+
+
(
-
-
- {({ i18n }) => (
-
- )}
-
-
-
-
-
-
+
+
+
+
+
+ ,
+
+
+
+ ]}
+ />
+
+
);
CheckboxListItem.propTypes = {
diff --git a/src/components/NotificationsList/NotificationListItem.jsx b/src/components/NotificationsList/NotificationListItem.jsx
index fa3238ba12..483a1345e9 100644
--- a/src/components/NotificationsList/NotificationListItem.jsx
+++ b/src/components/NotificationsList/NotificationListItem.jsx
@@ -24,6 +24,10 @@ function NotificationListItem (props) {
const capText = {
textTransform: 'capitalize'
};
+ const toggleCellStyles = {
+ display: 'flex',
+ justifyContent: 'flex-end',
+ };
return (
@@ -50,7 +54,7 @@ function NotificationListItem (props) {
{notification.notification_type}
,
-
+
-
- {item.name}
-
+ {item.name}
diff --git a/src/pages/Organizations/components/OrganizationListItem.jsx b/src/pages/Organizations/components/OrganizationListItem.jsx
index d0fcabc2eb..f1e7447fdf 100644
--- a/src/pages/Organizations/components/OrganizationListItem.jsx
+++ b/src/pages/Organizations/components/OrganizationListItem.jsx
@@ -48,7 +48,7 @@ class OrganizationListItem extends React.Component {
,
-
+
Members
diff --git a/src/pages/Organizations/screens/Organization/OrganizationNotifications.jsx b/src/pages/Organizations/screens/Organization/OrganizationNotifications.jsx
index 0ea2917cdc..c3129775be 100644
--- a/src/pages/Organizations/screens/Organization/OrganizationNotifications.jsx
+++ b/src/pages/Organizations/screens/Organization/OrganizationNotifications.jsx
@@ -12,6 +12,12 @@ const DEFAULT_QUERY_PARAMS = {
order_by: 'name',
};
+const COLUMNS = [
+ { key: 'name', name: 'Name', isSortable: true },
+ { key: 'modified', name: 'Modified', isSortable: true, isNumeric: true },
+ { key: 'created', name: 'Created', isSortable: true, isNumeric: true },
+];
+
class OrganizationNotifications extends Component {
constructor (props) {
super(props);
@@ -186,6 +192,7 @@ class OrganizationNotifications extends Component {
itemCount={itemCount}
itemName="notification"
queryParams={this.getQueryParams()}
+ toolbarColumns={COLUMNS}
renderItem={(notification) => (