Skip to content
This repository has been archived by the owner on Nov 28, 2024. It is now read-only.

Revert topology - moved to 4.18 #111

Merged
merged 1 commit into from
Sep 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/views/states/list/StatesList.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { FC, useCallback, useState } from 'react';
import { useNavigate } from 'react-router-dom-v5-compat';
// import { useNavigate } from 'react-router-dom-v5-compat';
import { useNMStateTranslation } from 'src/utils/hooks/useNMStateTranslation';

import {
Expand All @@ -14,8 +14,8 @@ import {
useK8sWatchResource,
useListPageFilter,
} from '@openshift-console/dynamic-plugin-sdk';
import { Button, Flex, Icon, Pagination } from '@patternfly/react-core';
import { TopologyIcon } from '@patternfly/react-icons';
import { Button, Flex, /*Icon*/ Pagination } from '@patternfly/react-core';
// import { TopologyIcon } from '@patternfly/react-icons';
import { Table, TableGridBreakpoint, Th, Thead, Tr } from '@patternfly/react-table';
import { V1beta1NodeNetworkState } from '@types';
import usePagination from '@utils/hooks/usePagination/usePagination';
Expand All @@ -35,7 +35,7 @@ import './states-list.scss';

const StatesList: FC = () => {
const { t } = useNMStateTranslation();
const navigate = useNavigate();
// const navigate = useNavigate();
const {
selectedInterfaceName,
selectedStateName,
Expand Down Expand Up @@ -77,11 +77,11 @@ const StatesList: FC = () => {
return (
<>
<ListPageHeader title={t(NodeNetworkStateModel.label)}>
<Button isInline variant="plain" onClick={() => navigate('/nmstate-topology')}>
{/* <Button isInline variant="plain" onClick={() => navigate('/nmstate-topology')}>
<Icon>
<TopologyIcon />
</Icon>
</Button>
</Button> */}
</ListPageHeader>
<ListPageBody>
<StatusBox loaded={statesLoaded} error={statesError}>
Expand Down
22 changes: 11 additions & 11 deletions src/views/states/manifest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ import type { EncodedExtension } from '@openshift/dynamic-plugin-sdk';
import type {
ResourceClusterNavItem,
ResourceListPage,
RoutePage,
// RoutePage,
} from '@openshift-console/dynamic-plugin-sdk';

import { NodeNetworkStateModelGroupVersionKind } from '../../console-models';

export const StateExposedModules = {
StatesList: './views/states/list/StatesList',
Topology: './views/states/topology/Topology',
// Topology: './views/states/topology/Topology',
};

export const StateExtensions: EncodedExtension[] = [
Expand All @@ -35,13 +35,13 @@ export const StateExtensions: EncodedExtension[] = [
component: { $codeRef: 'StatesList' },
},
} as EncodedExtension<ResourceListPage>,
{
type: 'console.page/route',
properties: {
path: ['nmstate-topology'],
component: {
$codeRef: 'Topology',
},
},
} as EncodedExtension<RoutePage>,
// {
// type: 'console.page/route',
// properties: {
// path: ['nmstate-topology'],
// component: {
// $codeRef: 'Topology',
// },
// },
// } as EncodedExtension<RoutePage>,
];
Loading