summaryrefslogtreecommitdiff
path: root/opendc-web/opendc-web-ui/src/pages
diff options
context:
space:
mode:
authorFabian Mastenbroek <mail.fabianm@gmail.com>2022-09-14 23:02:46 +0200
committerFabian Mastenbroek <mail.fabianm@gmail.com>2022-09-20 16:07:05 +0200
commit9dd75a9a40f7f2aebbc617980c99085f9dc688f8 (patch)
tree12b9fc2ef1b864c5773b78fe102f789508af7716 /opendc-web/opendc-web-ui/src/pages
parentd2c0b9c038f5cbcb2b1528d4cb22b862309bd99a (diff)
refactor(web/ui): Move project selector into masthead
This change moves the project selector into the masthead since it affects the whole application. This follows the PatternFly guidelines.
Diffstat (limited to 'opendc-web/opendc-web-ui/src/pages')
-rw-r--r--opendc-web/opendc-web-ui/src/pages/projects/[project]/index.js10
-rw-r--r--opendc-web/opendc-web-ui/src/pages/projects/[project]/portfolios/[portfolio].js2
-rw-r--r--opendc-web/opendc-web-ui/src/pages/projects/[project]/topologies/[topology].js2
3 files changed, 1 insertions, 13 deletions
diff --git a/opendc-web/opendc-web-ui/src/pages/projects/[project]/index.js b/opendc-web/opendc-web-ui/src/pages/projects/[project]/index.js
index 39fcb4f3..e4e2156b 100644
--- a/opendc-web/opendc-web-ui/src/pages/projects/[project]/index.js
+++ b/opendc-web/opendc-web-ui/src/pages/projects/[project]/index.js
@@ -21,9 +21,7 @@
*/
import { useRouter } from 'next/router'
-import ContextSelectionSection from '../../../components/context/ContextSelectionSection'
import ProjectOverview from '../../../components/projects/ProjectOverview'
-import ProjectSelector from '../../../components/context/ProjectSelector'
import { useProject } from '../../../data/project'
import { AppPage } from '../../../components/AppPage'
import Head from 'next/head'
@@ -55,14 +53,8 @@ function Project() {
</Breadcrumb>
)
- const contextSelectors = (
- <ContextSelectionSection>
- <ProjectSelector activeProject={project} />
- </ContextSelectionSection>
- )
-
return (
- <AppPage breadcrumb={breadcrumb} contextSelectors={contextSelectors}>
+ <AppPage breadcrumb={breadcrumb}>
<Head>
<title>{project?.name ?? 'Project'} - OpenDC</title>
</Head>
diff --git a/opendc-web/opendc-web-ui/src/pages/projects/[project]/portfolios/[portfolio].js b/opendc-web/opendc-web-ui/src/pages/projects/[project]/portfolios/[portfolio].js
index 4b9aa437..460785c1 100644
--- a/opendc-web/opendc-web-ui/src/pages/projects/[project]/portfolios/[portfolio].js
+++ b/opendc-web/opendc-web-ui/src/pages/projects/[project]/portfolios/[portfolio].js
@@ -40,7 +40,6 @@ import {
import { AppPage } from '../../../../components/AppPage'
import ContextSelectionSection from '../../../../components/context/ContextSelectionSection'
import PortfolioSelector from '../../../../components/context/PortfolioSelector'
-import ProjectSelector from '../../../../components/context/ProjectSelector'
import BreadcrumbLink from '../../../../components/util/BreadcrumbLink'
import PortfolioOverview from '../../../../components/portfolios/PortfolioOverview'
import { usePortfolio } from '../../../../data/project'
@@ -81,7 +80,6 @@ function Portfolio() {
const contextSelectors = (
<ContextSelectionSection>
- <ProjectSelector activeProject={project} />
<PortfolioSelector activePortfolio={portfolio} />
</ContextSelectionSection>
)
diff --git a/opendc-web/opendc-web-ui/src/pages/projects/[project]/topologies/[topology].js b/opendc-web/opendc-web-ui/src/pages/projects/[project]/topologies/[topology].js
index c331761b..d3892710 100644
--- a/opendc-web/opendc-web-ui/src/pages/projects/[project]/topologies/[topology].js
+++ b/opendc-web/opendc-web-ui/src/pages/projects/[project]/topologies/[topology].js
@@ -23,7 +23,6 @@
import dynamic from 'next/dynamic'
import { useRouter } from 'next/router'
import ContextSelectionSection from '../../../../components/context/ContextSelectionSection'
-import ProjectSelector from '../../../../components/context/ProjectSelector'
import TopologySelector from '../../../../components/context/TopologySelector'
import TopologyOverview from '../../../../components/topologies/TopologyOverview'
import { useDispatch } from 'react-redux'
@@ -90,7 +89,6 @@ function Topology() {
const contextSelectors = (
<ContextSelectionSection>
- <ProjectSelector activeProject={project} />
<TopologySelector activeTopology={topology} />
</ContextSelectionSection>
)