mirror of
https://github.com/ansible/awx.git
synced 2026-05-07 01:17:37 -02:30
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.
This commit is contained in:
@@ -20,6 +20,7 @@ import styled from 'styled-components';
|
|||||||
|
|
||||||
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);
|
||||||
@@ -46,7 +47,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