mirror of
https://github.com/ansible/awx.git
synced 2026-03-08 05:01:09 -02:30
Merge pull request #8658 from mabashian/5683-created-modified-details
Move jt/wfjt created/modified details to the end right before the full width details Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
This commit is contained in:
@@ -7,7 +7,11 @@ import { Button } from '@patternfly/react-core';
|
|||||||
import useRequest, { useDismissableError } from '../../../util/useRequest';
|
import useRequest, { useDismissableError } from '../../../util/useRequest';
|
||||||
import AlertModal from '../../../components/AlertModal';
|
import AlertModal from '../../../components/AlertModal';
|
||||||
import { CardBody, CardActionsRow } from '../../../components/Card';
|
import { CardBody, CardActionsRow } from '../../../components/Card';
|
||||||
import { Detail, DetailList } from '../../../components/DetailList';
|
import {
|
||||||
|
Detail,
|
||||||
|
DetailList,
|
||||||
|
UserDateDetail,
|
||||||
|
} from '../../../components/DetailList';
|
||||||
import { ApplicationsAPI } from '../../../api';
|
import { ApplicationsAPI } from '../../../api';
|
||||||
import DeleteButton from '../../../components/DeleteButton';
|
import DeleteButton from '../../../components/DeleteButton';
|
||||||
import ErrorDetail from '../../../components/ErrorDetail';
|
import ErrorDetail from '../../../components/ErrorDetail';
|
||||||
@@ -98,6 +102,11 @@ function ApplicationDetails({
|
|||||||
value={getClientType(application.client_type)}
|
value={getClientType(application.client_type)}
|
||||||
dataCy="app-detail-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>
|
</DetailList>
|
||||||
<CardActionsRow>
|
<CardActionsRow>
|
||||||
{application.summary_fields.user_capabilities &&
|
{application.summary_fields.user_capabilities &&
|
||||||
|
|||||||
@@ -7,7 +7,11 @@ import { Button, Chip, Label } from '@patternfly/react-core';
|
|||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
|
|
||||||
import AlertModal from '../../../components/AlertModal';
|
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 { CardBody, CardActionsRow } from '../../../components/Card';
|
||||||
import ChipGroup from '../../../components/ChipGroup';
|
import ChipGroup from '../../../components/ChipGroup';
|
||||||
import CredentialChip from '../../../components/CredentialChip';
|
import CredentialChip from '../../../components/CredentialChip';
|
||||||
@@ -80,6 +84,7 @@ const getLaunchedByDetails = ({ summary_fields = {}, related = {} }) => {
|
|||||||
|
|
||||||
function JobDetail({ job, i18n }) {
|
function JobDetail({ job, i18n }) {
|
||||||
const {
|
const {
|
||||||
|
created_by,
|
||||||
credential,
|
credential,
|
||||||
credentials,
|
credentials,
|
||||||
instance_group: instanceGroup,
|
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>
|
</DetailList>
|
||||||
{job.extra_vars && (
|
{job.extra_vars && (
|
||||||
<VariablesInput
|
<VariablesInput
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ import {
|
|||||||
ArrayDetail,
|
ArrayDetail,
|
||||||
DetailList,
|
DetailList,
|
||||||
DeletedDetail,
|
DeletedDetail,
|
||||||
|
UserDateDetail,
|
||||||
} from '../../../components/DetailList';
|
} from '../../../components/DetailList';
|
||||||
import CodeDetail from '../../../components/DetailList/CodeDetail';
|
import CodeDetail from '../../../components/DetailList/CodeDetail';
|
||||||
import DeleteButton from '../../../components/DeleteButton';
|
import DeleteButton from '../../../components/DeleteButton';
|
||||||
@@ -23,6 +24,8 @@ function NotificationTemplateDetail({ i18n, template, defaultMessages }) {
|
|||||||
const history = useHistory();
|
const history = useHistory();
|
||||||
|
|
||||||
const {
|
const {
|
||||||
|
created,
|
||||||
|
modified,
|
||||||
notification_configuration: configuration,
|
notification_configuration: configuration,
|
||||||
summary_fields,
|
summary_fields,
|
||||||
messages,
|
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) && (
|
{hasCustomMessages(messages, typeMessageDefaults) && (
|
||||||
<CustomMessageDetails
|
<CustomMessageDetails
|
||||||
messages={messages}
|
messages={messages}
|
||||||
|
|||||||
@@ -219,16 +219,6 @@ function JobTemplateDetail({ i18n, template }) {
|
|||||||
value={verbosityDetails[0].details}
|
value={verbosityDetails[0].details}
|
||||||
/>
|
/>
|
||||||
<Detail label={i18n._(t`Timeout`)} value={timeout || '0'} />
|
<Detail label={i18n._(t`Timeout`)} value={timeout || '0'} />
|
||||||
<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}
|
|
||||||
/>
|
|
||||||
<Detail
|
<Detail
|
||||||
label={i18n._(t`Show Changes`)}
|
label={i18n._(t`Show Changes`)}
|
||||||
value={diff_mode ? i18n._(t`On`) : i18n._(t`Off`)}
|
value={diff_mode ? i18n._(t`On`) : i18n._(t`Off`)}
|
||||||
@@ -278,6 +268,16 @@ function JobTemplateDetail({ i18n, template }) {
|
|||||||
{renderOptionsField && (
|
{renderOptionsField && (
|
||||||
<Detail label={i18n._(t`Options`)} value={renderOptions} />
|
<Detail label={i18n._(t`Options`)} value={renderOptions} />
|
||||||
)}
|
)}
|
||||||
|
<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}
|
||||||
|
/>
|
||||||
{summary_fields.credentials && summary_fields.credentials.length > 0 && (
|
{summary_fields.credentials && summary_fields.credentials.length > 0 && (
|
||||||
<Detail
|
<Detail
|
||||||
fullWidth
|
fullWidth
|
||||||
|
|||||||
@@ -135,9 +135,6 @@ function WorkflowJobTemplateDetail({ template, i18n }) {
|
|||||||
)}
|
)}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
{renderOptionsField && (
|
|
||||||
<Detail label={i18n._(t`Options`)} value={renderOptions} />
|
|
||||||
)}
|
|
||||||
<Detail
|
<Detail
|
||||||
label={i18n._(t`Webhook Service`)}
|
label={i18n._(t`Webhook Service`)}
|
||||||
value={toTitleCase(template.webhook_service)}
|
value={toTitleCase(template.webhook_service)}
|
||||||
@@ -162,6 +159,19 @@ function WorkflowJobTemplateDetail({ template, i18n }) {
|
|||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
{renderOptionsField && (
|
||||||
|
<Detail label={i18n._(t`Options`)} value={renderOptions} />
|
||||||
|
)}
|
||||||
|
<UserDateDetail
|
||||||
|
label={i18n._(t`Created`)}
|
||||||
|
date={created}
|
||||||
|
user={summary_fields.created_by}
|
||||||
|
/>
|
||||||
|
<UserDateDetail
|
||||||
|
label={i18n._(t`Modified`)}
|
||||||
|
date={modified}
|
||||||
|
user={summary_fields.modified_by}
|
||||||
|
/>
|
||||||
{summary_fields.labels?.results?.length > 0 && (
|
{summary_fields.labels?.results?.length > 0 && (
|
||||||
<Detail
|
<Detail
|
||||||
fullWidth
|
fullWidth
|
||||||
@@ -185,16 +195,6 @@ function WorkflowJobTemplateDetail({ template, i18n }) {
|
|||||||
value={extra_vars}
|
value={extra_vars}
|
||||||
rows={4}
|
rows={4}
|
||||||
/>
|
/>
|
||||||
<UserDateDetail
|
|
||||||
label={i18n._(t`Created`)}
|
|
||||||
date={created}
|
|
||||||
user={summary_fields.created_by}
|
|
||||||
/>
|
|
||||||
<UserDateDetail
|
|
||||||
label={i18n._(t`Modified`)}
|
|
||||||
date={modified}
|
|
||||||
user={summary_fields.modified_by}
|
|
||||||
/>
|
|
||||||
</DetailList>
|
</DetailList>
|
||||||
<CardActionsRow>
|
<CardActionsRow>
|
||||||
{summary_fields.user_capabilities &&
|
{summary_fields.user_capabilities &&
|
||||||
|
|||||||
Reference in New Issue
Block a user