mirror of
https://github.com/ansible/awx.git
synced 2026-05-23 08:37:48 -02:30
Merge pull request #10105 from nixocio/ui_update_date_tooltip
Make date consistent on tooltip display Make date consistent on tooltip to display info about job. There are 3 places that define similar function on the code basis. Make them consistent in how to display date. Search for generateLastJobTooltip on code basis. Reviewed-by: Keith Grant <keithjgrant@gmail.com>
This commit is contained in:
@@ -12,6 +12,7 @@ import styled from 'styled-components';
|
|||||||
import { ActionsTd, ActionItem } from '../../../components/PaginatedTable';
|
import { ActionsTd, ActionItem } from '../../../components/PaginatedTable';
|
||||||
import StatusIcon from '../../../components/StatusIcon';
|
import StatusIcon from '../../../components/StatusIcon';
|
||||||
import InventorySourceSyncButton from '../shared/InventorySourceSyncButton';
|
import InventorySourceSyncButton from '../shared/InventorySourceSyncButton';
|
||||||
|
import { formatDateString } from '../../../util/dates';
|
||||||
|
|
||||||
const ExclamationTriangleIcon = styled(PFExclamationTriangleIcon)`
|
const ExclamationTriangleIcon = styled(PFExclamationTriangleIcon)`
|
||||||
color: var(--pf-global--warning-color--100);
|
color: var(--pf-global--warning-color--100);
|
||||||
@@ -38,7 +39,7 @@ function InventorySourceListItem({
|
|||||||
</div>
|
</div>
|
||||||
{job.finished && (
|
{job.finished && (
|
||||||
<div>
|
<div>
|
||||||
{t`FINISHED:`} {job.finished}
|
{t`FINISHED:`} {formatDateString(job.finished)}
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</>
|
</>
|
||||||
|
|||||||
Reference in New Issue
Block a user