This repository has been archived by the owner on Jul 21, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1031 from mturley/list-view-table-structure
Convert list views to table structure to fix alignment issues (cherry picked from commit 40746f1) https://bugzilla.redhat.com/show_bug.cgi?id=1716845
- Loading branch information
Showing
18 changed files
with
608 additions
and
203 deletions.
There are no files selected for viewing
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
27 changes: 27 additions & 0 deletions
27
app/javascript/react/screens/App/Overview/components/Migrations/ScheduledTimeInfoItem.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,27 @@ | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import { ListView, Icon } from 'patternfly-react'; | ||
import { formatDateTime } from '../../../../../../components/dates/MomentDate'; | ||
|
||
const ScheduledTimeInfoItem = ({ planId, migrationStarting, showScheduledTime, migrationScheduled }) => | ||
migrationStarting ? ( | ||
<ListView.InfoItem key={`${planId}-starting`} style={{ textAlign: 'left' }}> | ||
{__('Migration in progress')} | ||
</ListView.InfoItem> | ||
) : showScheduledTime ? ( | ||
<ListView.InfoItem key={`${planId}-scheduledTime`} style={{ textAlign: 'left' }}> | ||
<Icon type="fa" name="clock-o" /> | ||
{__('Migration scheduled')} | ||
<br /> | ||
{formatDateTime(migrationScheduled)} | ||
</ListView.InfoItem> | ||
) : null; | ||
|
||
ScheduledTimeInfoItem.propTypes = { | ||
planId: PropTypes.string, | ||
migrationStarting: PropTypes.bool, | ||
showScheduledTime: PropTypes.bool, | ||
migrationScheduled: PropTypes.number | ||
}; | ||
|
||
export default ScheduledTimeInfoItem; |
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
Oops, something went wrong.