mirror of
https://github.com/ansible/awx.git
synced 2026-03-23 20:05:03 -02:30
fixes erroneous render
This commit is contained in:
@@ -167,21 +167,22 @@ function SurveyList({
|
|||||||
</AlertModal>
|
</AlertModal>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
if (!questions || questions?.length <= 0) {
|
||||||
|
return (
|
||||||
|
<EmptyState variant="full">
|
||||||
|
<EmptyStateIcon icon={CubesIcon} />
|
||||||
|
<Title size="lg" headingLevel="h3">
|
||||||
|
{i18n._(t`No survey questions found.`)}
|
||||||
|
</Title>
|
||||||
|
<EmptyStateBody>
|
||||||
|
{i18n._(t`Please add survey questions.`)}
|
||||||
|
</EmptyStateBody>
|
||||||
|
<ToolbarAddButton isDisabled={!canEdit} linkTo={`${match.url}/add`} />
|
||||||
|
</EmptyState>
|
||||||
|
);
|
||||||
|
}
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
{(!questions || questions?.length <= 0) && (
|
|
||||||
<EmptyState variant="full">
|
|
||||||
<EmptyStateIcon icon={CubesIcon} />
|
|
||||||
<Title size="lg" headingLevel="h3">
|
|
||||||
{i18n._(t`No survey questions found.`)}
|
|
||||||
</Title>
|
|
||||||
<EmptyStateBody>
|
|
||||||
{i18n._(t`Please add survey questions.`)}
|
|
||||||
</EmptyStateBody>
|
|
||||||
<ToolbarAddButton isDisabled={!canEdit} linkTo={`${match.url}/add`} />
|
|
||||||
</EmptyState>
|
|
||||||
)}
|
|
||||||
<SurveyToolbar
|
<SurveyToolbar
|
||||||
isAllSelected={isAllSelected}
|
isAllSelected={isAllSelected}
|
||||||
onSelectAll={handleSelectAll}
|
onSelectAll={handleSelectAll}
|
||||||
|
|||||||
Reference in New Issue
Block a user