mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 01:57:35 -03:30
Adds created/modified details to several areas
This commit is contained in:
parent
4ea757c91a
commit
0b3d9b026d
@ -7,7 +7,11 @@ import { Button } from '@patternfly/react-core';
|
||||
import useRequest, { useDismissableError } from '../../../util/useRequest';
|
||||
import AlertModal from '../../../components/AlertModal';
|
||||
import { CardBody, CardActionsRow } from '../../../components/Card';
|
||||
import { Detail, DetailList } from '../../../components/DetailList';
|
||||
import {
|
||||
Detail,
|
||||
DetailList,
|
||||
UserDateDetail,
|
||||
} from '../../../components/DetailList';
|
||||
import { ApplicationsAPI } from '../../../api';
|
||||
import DeleteButton from '../../../components/DeleteButton';
|
||||
import ErrorDetail from '../../../components/ErrorDetail';
|
||||
@ -98,6 +102,11 @@ function ApplicationDetails({
|
||||
value={getClientType(application.client_type)}
|
||||
dataCy="app-detail-client-type"
|
||||
/>
|
||||
<UserDateDetail label={i18n._(t`Created`)} date={application.created} />
|
||||
<UserDateDetail
|
||||
label={i18n._(t`Last Modified`)}
|
||||
date={application.modified}
|
||||
/>
|
||||
</DetailList>
|
||||
<CardActionsRow>
|
||||
{application.summary_fields.user_capabilities &&
|
||||
|
||||
@ -7,7 +7,11 @@ import { Button, Chip, Label } from '@patternfly/react-core';
|
||||
import styled from 'styled-components';
|
||||
|
||||
import AlertModal from '../../../components/AlertModal';
|
||||
import { DetailList, Detail } from '../../../components/DetailList';
|
||||
import {
|
||||
DetailList,
|
||||
Detail,
|
||||
UserDateDetail,
|
||||
} from '../../../components/DetailList';
|
||||
import { CardBody, CardActionsRow } from '../../../components/Card';
|
||||
import ChipGroup from '../../../components/ChipGroup';
|
||||
import CredentialChip from '../../../components/CredentialChip';
|
||||
@ -80,6 +84,7 @@ const getLaunchedByDetails = ({ summary_fields = {}, related = {} }) => {
|
||||
|
||||
function JobDetail({ job, i18n }) {
|
||||
const {
|
||||
created_by,
|
||||
credential,
|
||||
credentials,
|
||||
instance_group: instanceGroup,
|
||||
@ -289,6 +294,12 @@ function JobDetail({ job, i18n }) {
|
||||
}
|
||||
/>
|
||||
)}
|
||||
<UserDateDetail
|
||||
label={i18n._(t`Created`)}
|
||||
date={job.created}
|
||||
user={created_by}
|
||||
/>
|
||||
<UserDateDetail label={i18n._(t`Last Modified`)} date={job.modified} />
|
||||
</DetailList>
|
||||
{job.extra_vars && (
|
||||
<VariablesInput
|
||||
|
||||
@ -10,6 +10,7 @@ import {
|
||||
ArrayDetail,
|
||||
DetailList,
|
||||
DeletedDetail,
|
||||
UserDateDetail,
|
||||
} from '../../../components/DetailList';
|
||||
import CodeDetail from '../../../components/DetailList/CodeDetail';
|
||||
import DeleteButton from '../../../components/DeleteButton';
|
||||
@ -23,6 +24,8 @@ function NotificationTemplateDetail({ i18n, template, defaultMessages }) {
|
||||
const history = useHistory();
|
||||
|
||||
const {
|
||||
created,
|
||||
modified,
|
||||
notification_configuration: configuration,
|
||||
summary_fields,
|
||||
messages,
|
||||
@ -324,6 +327,16 @@ function NotificationTemplateDetail({ i18n, template, defaultMessages }) {
|
||||
/>
|
||||
</>
|
||||
)}
|
||||
<UserDateDetail
|
||||
label={i18n._(t`Created`)}
|
||||
date={created}
|
||||
user={summary_fields?.created_by}
|
||||
/>
|
||||
<UserDateDetail
|
||||
label={i18n._(t`Last Modified`)}
|
||||
date={modified}
|
||||
user={summary_fields?.modified_by}
|
||||
/>
|
||||
{hasCustomMessages(messages, typeMessageDefaults) && (
|
||||
<CustomMessageDetails
|
||||
messages={messages}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user