Skip to content

Commit

Permalink
fix: app navigation (#1179)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustav-Eikaas authored Nov 12, 2024
1 parent 4391770 commit 5b83f24
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 2 deletions.
2 changes: 2 additions & 0 deletions libs/handoverapp/src/lib/config/frameworkConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 }) => {
Expand Down
2 changes: 2 additions & 0 deletions libs/heattraceapp/src/lib/config/frameworkConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 }) => {
Expand Down
2 changes: 2 additions & 0 deletions libs/loopapp/src/lib/config/frameworkConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 }) => {
Expand Down
2 changes: 2 additions & 0 deletions libs/pipingapp/src/lib/config/frameworkConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 }) => {
Expand Down
3 changes: 2 additions & 1 deletion libs/punchapp/src/lib/config/frameworkConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 }) => {
Expand Down
2 changes: 2 additions & 0 deletions libs/scopechangerequestapp/src/lib/config/frameworkConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 }) => {
Expand Down
2 changes: 2 additions & 0 deletions libs/swcrapp/src/lib/config/frameworkConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 }) => {
Expand Down
3 changes: 2 additions & 1 deletion libs/workorderapp/src/lib/config/frameworkConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 }) => {
Expand Down

0 comments on commit 5b83f24

Please sign in to comment.