Skip to content
Snippets Groups Projects
Commit 94ee92ab authored by Mohammad Torkashvand's avatar Mohammad Torkashvand
Browse files

fix acl for MapsPage and remove exampe title

parent e2ac6803
No related branches found
No related tags found
1 merge request!29fix acl for MapsPage and remove exampe title
Pipeline #87035 passed
...@@ -130,7 +130,7 @@ function CustomApp({ ...@@ -130,7 +130,7 @@ function CustomApp({
<TranslationsProvider> <TranslationsProvider>
<Head> <Head>
<link rel="icon" href="/favicon.png" /> <link rel="icon" href="/favicon.png" />
<title>Welcome to example-orchestrator-ui!</title> <title>GÉANT Service Orchestrator</title>
</Head> </Head>
<main className="app"> <main className="app">
<ConfirmationDialogContextWrapper> <ConfirmationDialogContextWrapper>
......
import NetworkMap from '@/components/NetworkMap/NetworkMap'; import NetworkMap from '@/components/NetworkMap/NetworkMap';
import { GSOPolicyResource } from '@/types/policyResources';
import { NetworkTopologyData } from '@/types/types'; import { NetworkTopologyData } from '@/types/types';
import { WfoPolicyRenderPageFallback } from '@orchestrator-ui/orchestrator-ui-components';
import axios from 'axios'; import axios from 'axios';
import { NextPage, GetServerSideProps } from 'next'; import { NextPage, GetServerSideProps } from 'next';
import Head from 'next/head';
import React from 'react'; import React from 'react';
interface MapsProps { interface MapsProps {
networkTopologyData: NetworkTopologyData; networkTopologyData: NetworkTopologyData;
} }
const Maps: NextPage<MapsProps> = ({ networkTopologyData }) => { const MapsPage: NextPage<MapsProps> = ({ networkTopologyData }) => {
return ( return (
<> <WfoPolicyRenderPageFallback resource={GSOPolicyResource.NAVIGATION_MAPS}>
<Head> <NetworkMap data={networkTopologyData} />
<title>Maps</title> </WfoPolicyRenderPageFallback>
</Head>
<div>
<NetworkMap data={networkTopologyData} />
</div>
</>
); );
}; };
...@@ -42,4 +38,4 @@ export const getServerSideProps: GetServerSideProps = async () => { ...@@ -42,4 +38,4 @@ export const getServerSideProps: GetServerSideProps = async () => {
} }
}; };
export default Maps; export default MapsPage;
export enum GSOPolicyResource {
NAVIGATION_MAPS = 'NAVIGATION_MAPS',
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment