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

Commit

Permalink
Merge pull request #111 from avivtur/revert-topology
Browse files Browse the repository at this point in the history
Revert topology - moved to 4.18
  • Loading branch information
openshift-merge-bot[bot] authored Sep 23, 2024
2 parents 8fd2a5c + 6441e71 commit 7187b7e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
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>,
];

0 comments on commit 7187b7e

Please sign in to comment.