Fixes Breaedcrumb

This commit is contained in:
Alex Corey
2020-01-13 11:27:23 -05:00
parent dfa578fcde
commit 8bfcef01df
2 changed files with 72 additions and 71 deletions

View File

@@ -2,7 +2,7 @@ import React, { Component, Fragment } from 'react';
import { withRouter } from 'react-router-dom'; import { withRouter } from 'react-router-dom';
import { withI18n } from '@lingui/react'; import { withI18n } from '@lingui/react';
import { t } from '@lingui/macro'; import { t } from '@lingui/macro';
import { Card, PageSection } from '@patternfly/react-core'; import { Card } from '@patternfly/react-core';
import { HostsAPI } from '@api'; import { HostsAPI } from '@api';
import AlertModal from '@components/AlertModal'; import AlertModal from '@components/AlertModal';
@@ -180,7 +180,6 @@ class HostsList extends Component {
return ( return (
<Fragment> <Fragment>
<PageSection>
<Card> <Card>
<PaginatedDataList <PaginatedDataList
contentError={contentError} contentError={contentError}
@@ -249,7 +248,6 @@ class HostsList extends Component {
} }
/> />
</Card> </Card>
</PageSection>
{toggleError && !toggleLoading && ( {toggleError && !toggleLoading && (
<AlertModal <AlertModal
variant="danger" variant="danger"

View File

@@ -61,6 +61,9 @@ class Inventories extends Component {
t`Sources` t`Sources`
), ),
[`/inventories/${inventoryKind}/${inventory.id}/hosts/add`]: i18n._(
t`Create New Host`
),
[`/inventories/${inventoryKind}/${inventory.id}/hosts/${nestedResource && [`/inventories/${inventoryKind}/${inventory.id}/hosts/${nestedResource &&
nestedResource.id}/edit`]: i18n._(t`Edit Details`), nestedResource.id}/edit`]: i18n._(t`Edit Details`),
[`/inventories/${inventoryKind}/${inventory.id}/hosts/${nestedResource && [`/inventories/${inventoryKind}/${inventory.id}/hosts/${nestedResource &&