diff --git a/awx/ui_next/src/components/JobList/JobList.js b/awx/ui_next/src/components/JobList/JobList.js index 1ce6b97dbc..0547212d0d 100644 --- a/awx/ui_next/src/components/JobList/JobList.js +++ b/awx/ui_next/src/components/JobList/JobList.js @@ -159,6 +159,7 @@ function JobList({ defaultParams, showTypeColumn = false }) { hasContentLoading={isLoading || isDeleteLoading || isCancelLoading} items={jobs} itemCount={count} + emptyContentMessage={t`Please run a job to populate this list.`} pluralizedItemName={t`Jobs`} qsConfig={qsConfig} toolbarSearchColumns={[ diff --git a/awx/ui_next/src/components/PaginatedTable/ToolbarAddButton.js b/awx/ui_next/src/components/PaginatedTable/ToolbarAddButton.js index a4479cc619..27c2ca6fe0 100644 --- a/awx/ui_next/src/components/PaginatedTable/ToolbarAddButton.js +++ b/awx/ui_next/src/components/PaginatedTable/ToolbarAddButton.js @@ -10,7 +10,6 @@ import { useKebabifiedMenu } from 'contexts/Kebabified'; function ToolbarAddButton({ linkTo, onClick, - isDisabled, defaultLabel = t`Add`, showToggleIndicator, diff --git a/awx/ui_next/src/components/Schedule/ScheduleList/ScheduleList.js b/awx/ui_next/src/components/Schedule/ScheduleList/ScheduleList.js index 63edb5a749..97b7e4ec3b 100644 --- a/awx/ui_next/src/components/Schedule/ScheduleList/ScheduleList.js +++ b/awx/ui_next/src/components/Schedule/ScheduleList/ScheduleList.js @@ -147,6 +147,11 @@ function ScheduleList({ } return missingValues && t`This schedule is missing required survey values`; }; + let emptyContentMessage = t`Please add a Schedule to populate this list.`; + + if (location.pathname.startsWith('/schedules')) { + emptyContentMessage = t`Please add a Schedule to populate this list. Schedules can be added to a Template, Project, or Inventory Source.`; + } return ( <> @@ -156,6 +161,8 @@ function ScheduleList({ items={schedules} itemCount={itemCount} qsConfig={QS_CONFIG} + pluralizedItemName={t`Schedules`} + emptyContentMessage={emptyContentMessage} onRowClick={handleSelect} headerRow={