mirror of
https://github.com/ansible/awx.git
synced 2026-05-16 22:07:36 -02:30
Remove instructions to add on empty mgmt jobs
This commit is contained in:
@@ -37,6 +37,7 @@ function PaginatedTable({
|
|||||||
showPageSizeOptions,
|
showPageSizeOptions,
|
||||||
i18n,
|
i18n,
|
||||||
renderToolbar,
|
renderToolbar,
|
||||||
|
emptyContentMessage,
|
||||||
}) {
|
}) {
|
||||||
const history = useHistory();
|
const history = useHistory();
|
||||||
|
|
||||||
@@ -73,9 +74,6 @@ function PaginatedTable({
|
|||||||
const queryParams = parseQueryString(qsConfig, history.location.search);
|
const queryParams = parseQueryString(qsConfig, history.location.search);
|
||||||
|
|
||||||
const dataListLabel = i18n._(t`${pluralizedItemName} List`);
|
const dataListLabel = i18n._(t`${pluralizedItemName} List`);
|
||||||
const emptyContentMessage = i18n._(
|
|
||||||
t`Please add ${pluralizedItemName} to populate this list `
|
|
||||||
);
|
|
||||||
const emptyContentTitle = i18n._(t`No ${pluralizedItemName} Found `);
|
const emptyContentTitle = i18n._(t`No ${pluralizedItemName} Found `);
|
||||||
|
|
||||||
let Content;
|
let Content;
|
||||||
@@ -85,7 +83,13 @@ function PaginatedTable({
|
|||||||
Content = <ContentError error={contentError} />;
|
Content = <ContentError error={contentError} />;
|
||||||
} else if (items.length <= 0) {
|
} else if (items.length <= 0) {
|
||||||
Content = (
|
Content = (
|
||||||
<ContentEmpty title={emptyContentTitle} message={emptyContentMessage} />
|
<ContentEmpty
|
||||||
|
title={emptyContentTitle}
|
||||||
|
message={
|
||||||
|
emptyContentMessage ||
|
||||||
|
i18n._(t`Please add ${pluralizedItemName} to populate this list `)
|
||||||
|
}
|
||||||
|
/>
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
Content = (
|
Content = (
|
||||||
|
|||||||
@@ -80,6 +80,7 @@ function ManagementJobList({ i18n }) {
|
|||||||
items={items}
|
items={items}
|
||||||
itemCount={count}
|
itemCount={count}
|
||||||
pluralizedItemName={i18n._(t`Management Jobs`)}
|
pluralizedItemName={i18n._(t`Management Jobs`)}
|
||||||
|
emptyContentMessage={' '}
|
||||||
toolbarSearchableKeys={searchableKeys}
|
toolbarSearchableKeys={searchableKeys}
|
||||||
toolbarRelatedSearchableKeys={relatedSearchableKeys}
|
toolbarRelatedSearchableKeys={relatedSearchableKeys}
|
||||||
toolbarSearchColumns={[
|
toolbarSearchColumns={[
|
||||||
|
|||||||
Reference in New Issue
Block a user