From 6b1405ccaa4877a10321d8fd9664d45ce318e458 Mon Sep 17 00:00:00 2001 From: Gustav Eikaas Date: Tue, 12 Nov 2024 09:05:19 +0100 Subject: [PATCH] . --- libs/handoverapp/src/lib/config/frameworkConfig.ts | 2 ++ libs/heattraceapp/src/lib/config/frameworkConfig.ts | 2 ++ libs/loopapp/src/lib/config/frameworkConfig.ts | 2 ++ libs/pipingapp/src/lib/config/frameworkConfig.ts | 2 ++ libs/punchapp/src/lib/config/frameworkConfig.ts | 3 ++- libs/scopechangerequestapp/src/lib/config/frameworkConfig.ts | 2 ++ libs/swcrapp/src/lib/config/frameworkConfig.ts | 2 ++ libs/workorderapp/src/lib/config/frameworkConfig.ts | 3 ++- 8 files changed, 16 insertions(+), 2 deletions(-) diff --git a/libs/handoverapp/src/lib/config/frameworkConfig.ts b/libs/handoverapp/src/lib/config/frameworkConfig.ts index c75006947..ac0f593af 100644 --- a/libs/handoverapp/src/lib/config/frameworkConfig.ts +++ b/libs/handoverapp/src/lib/config/frameworkConfig.ts @@ -4,10 +4,12 @@ import { ComponentRenderArgs, IAppConfigurator, } from '@equinor/fusion-framework-react-app'; +import { enableNavigation } from '@equinor/fusion-framework-module-navigation'; import { enableContext } from '@equinor/fusion-framework-react-module-context'; import buildQuery from 'odata-query'; export const configure = async (config: IAppConfigurator, c: ComponentRenderArgs) => { + enableNavigation(config, c.env.basename); enableContext(config, async (builder) => { builder.setContextType(['ProjectMaster', 'Facility']); builder.setContextParameterFn(({ search, type }) => { diff --git a/libs/heattraceapp/src/lib/config/frameworkConfig.ts b/libs/heattraceapp/src/lib/config/frameworkConfig.ts index fcd57604f..2feb935df 100644 --- a/libs/heattraceapp/src/lib/config/frameworkConfig.ts +++ b/libs/heattraceapp/src/lib/config/frameworkConfig.ts @@ -6,8 +6,10 @@ import { import { enableContext } from '@equinor/fusion-framework-react-module-context'; import buildQuery from 'odata-query'; import { ModelViewerEnvConfig, enableModelViewer } from '@cc-components/modelviewer'; +import { enableNavigation } from '@equinor/fusion-framework-module-navigation'; export const configure = async (config: IAppConfigurator, c: ComponentRenderArgs) => { + enableNavigation(config, c.env.basename); enableContext(config, async (builder) => { builder.setContextType(['ProjectMaster', 'Facility']); builder.setContextParameterFn(({ search, type }) => { diff --git a/libs/loopapp/src/lib/config/frameworkConfig.ts b/libs/loopapp/src/lib/config/frameworkConfig.ts index e5dfab700..8cdd8634a 100644 --- a/libs/loopapp/src/lib/config/frameworkConfig.ts +++ b/libs/loopapp/src/lib/config/frameworkConfig.ts @@ -5,9 +5,11 @@ import { IAppConfigurator, } from '@equinor/fusion-framework-react-app'; import { enableContext } from '@equinor/fusion-framework-react-module-context'; +import { enableNavigation } from '@equinor/fusion-framework-module-navigation'; import buildQuery from 'odata-query'; export const configure = async (config: IAppConfigurator, c: ComponentRenderArgs) => { + enableNavigation(config, c.env.basename); enableContext(config, async (builder) => { builder.setContextType(['ProjectMaster', 'Facility']); builder.setContextParameterFn(({ search, type }) => { diff --git a/libs/pipingapp/src/lib/config/frameworkConfig.ts b/libs/pipingapp/src/lib/config/frameworkConfig.ts index 675faa78d..ff964301a 100644 --- a/libs/pipingapp/src/lib/config/frameworkConfig.ts +++ b/libs/pipingapp/src/lib/config/frameworkConfig.ts @@ -6,8 +6,10 @@ import { enableContext } from '@equinor/fusion-framework-react-module-context'; import buildQuery from 'odata-query'; import { enableAgGrid } from '@equinor/fusion-framework-module-ag-grid'; import { ModelViewerEnvConfig, enableModelViewer } from '@cc-components/modelviewer'; +import { enableNavigation } from '@equinor/fusion-framework-module-navigation'; export const configure = async (config: IAppConfigurator, c: ComponentRenderArgs) => { + enableNavigation(config, c.env.basename); enableContext(config, async (builder) => { builder.setContextType(['ProjectMaster', 'Facility']); builder.setContextParameterFn(({ search, type }) => { diff --git a/libs/punchapp/src/lib/config/frameworkConfig.ts b/libs/punchapp/src/lib/config/frameworkConfig.ts index 108ffd61b..b637339bc 100644 --- a/libs/punchapp/src/lib/config/frameworkConfig.ts +++ b/libs/punchapp/src/lib/config/frameworkConfig.ts @@ -4,11 +4,12 @@ import { IAppConfigurator, } from '@equinor/fusion-framework-react-app'; import { enableModelViewer, ModelViewerEnvConfig } from '@cc-components/modelviewer'; - +import { enableNavigation } from '@equinor/fusion-framework-module-navigation'; import { enableContext } from '@equinor/fusion-framework-react-module-context'; import buildQuery from 'odata-query'; export const configure = async (config: IAppConfigurator, c: ComponentRenderArgs) => { + enableNavigation(config, c.env.basename); enableContext(config, async (builder) => { builder.setContextType(['ProjectMaster', 'Facility']); builder.setContextParameterFn(({ search, type }) => { diff --git a/libs/scopechangerequestapp/src/lib/config/frameworkConfig.ts b/libs/scopechangerequestapp/src/lib/config/frameworkConfig.ts index d1998fbc0..fa1d14209 100644 --- a/libs/scopechangerequestapp/src/lib/config/frameworkConfig.ts +++ b/libs/scopechangerequestapp/src/lib/config/frameworkConfig.ts @@ -5,8 +5,10 @@ import { } from '@equinor/fusion-framework-react-app'; import { enableContext } from '@equinor/fusion-framework-react-module-context'; import buildQuery from 'odata-query'; +import { enableNavigation } from '@equinor/fusion-framework-module-navigation'; export const configure = async (config: IAppConfigurator, c: ComponentRenderArgs) => { + enableNavigation(config, c.env.basename); enableContext(config, async (builder) => { builder.setContextType(['ProjectMaster']); builder.setContextParameterFn(({ search, type }) => { diff --git a/libs/swcrapp/src/lib/config/frameworkConfig.ts b/libs/swcrapp/src/lib/config/frameworkConfig.ts index 8b3d6f6bc..673779060 100644 --- a/libs/swcrapp/src/lib/config/frameworkConfig.ts +++ b/libs/swcrapp/src/lib/config/frameworkConfig.ts @@ -4,9 +4,11 @@ import { IAppConfigurator, } from '@equinor/fusion-framework-react-app'; import { enableContext } from '@equinor/fusion-framework-react-module-context'; +import { enableNavigation } from '@equinor/fusion-framework-module-navigation'; import buildQuery from 'odata-query'; export const configure = async (config: IAppConfigurator, c: ComponentRenderArgs) => { + enableNavigation(config, c.env.basename); enableContext(config, async (builder) => { builder.setContextType(['ProjectMaster', 'Facility']); builder.setContextParameterFn(({ search, type }) => { diff --git a/libs/workorderapp/src/lib/config/frameworkConfig.ts b/libs/workorderapp/src/lib/config/frameworkConfig.ts index 2768793dc..3f625d01c 100644 --- a/libs/workorderapp/src/lib/config/frameworkConfig.ts +++ b/libs/workorderapp/src/lib/config/frameworkConfig.ts @@ -5,10 +5,11 @@ import { } from '@equinor/fusion-framework-react-app'; import { enableContext } from '@equinor/fusion-framework-react-module-context'; import { enableModelViewer, ModelViewerEnvConfig } from '@cc-components/modelviewer'; - +import { enableNavigation } from '@equinor/fusion-framework-module-navigation'; import buildQuery from 'odata-query'; export const configure = async (config: IAppConfigurator, c: ComponentRenderArgs) => { + enableNavigation(config, c.env.basename); enableContext(config, async (builder) => { builder.setContextType(['ProjectMaster', 'Facility']); builder.setContextParameterFn(({ search, type }) => {