-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Moved the page description into a modal which is reachable from the dropdown kebab. - Moved also the settings card into a modal. - Small margin/padding fixes. - replace PF3 Buttons with PF4 Buttons.
- Loading branch information
1 parent
46e25e4
commit 0d581c3
Showing
15 changed files
with
119 additions
and
30 deletions.
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
webpack/ForemanInventoryUpload/Components/AccountList/accountList.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,9 @@ | ||
.rh-cloud-inventory-page { | ||
|
||
section { | ||
padding-bottom: 0; | ||
} | ||
|
||
#main { | ||
padding: 0; | ||
|
||
|
3 changes: 0 additions & 3 deletions
3
webpack/ForemanInventoryUpload/Components/InventorySettings/InventorySettings.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
webpack/ForemanInventoryUpload/Components/PageHeader/PageHeader.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
.rh-cloud-inventory-page { | ||
.inventory-upload-header { | ||
margin-top: 35px; | ||
|
||
h1 { | ||
font-family: 'RedHatDisplay'; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
webpack/ForemanInventoryUpload/Components/PageHeader/components/AboutModal/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* eslint-disable camelcase */ | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import { Modal, ModalVariant } from '@patternfly/react-core'; | ||
import PageDescription from '../PageDescription'; | ||
|
||
const AboutModal = ({ isOpen, toggle, title }) => ( | ||
<Modal | ||
id="rh-cloud-about-modal" | ||
appendTo={document.getElementsByClassName('react-container')[0]} | ||
variant={ModalVariant.large} | ||
title={title} | ||
isOpen={isOpen} | ||
onClose={toggle} | ||
> | ||
<PageDescription /> | ||
</Modal> | ||
); | ||
|
||
AboutModal.propTypes = { | ||
isOpen: PropTypes.bool.isRequired, | ||
toggle: PropTypes.func.isRequired, | ||
title: PropTypes.string.isRequired, | ||
}; | ||
|
||
export default AboutModal; |
26 changes: 26 additions & 0 deletions
26
webpack/ForemanInventoryUpload/Components/PageHeader/components/SettingsModal/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* eslint-disable camelcase */ | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import { Modal, ModalVariant } from '@patternfly/react-core'; | ||
import InventorySettings from '../../../InventorySettings'; | ||
|
||
const SettingsModal = ({ isOpen, toggle, title }) => ( | ||
<Modal | ||
id="about-modal" | ||
appendTo={document.getElementsByClassName('react-container')[0]} | ||
variant={ModalVariant.small} | ||
title={title} | ||
isOpen={isOpen} | ||
onClose={toggle} | ||
> | ||
<InventorySettings /> | ||
</Modal> | ||
); | ||
|
||
SettingsModal.propTypes = { | ||
isOpen: PropTypes.bool.isRequired, | ||
toggle: PropTypes.func.isRequired, | ||
title: PropTypes.string.isRequired, | ||
}; | ||
|
||
export default SettingsModal; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters