Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

query space for ifc page

ulferts3bf96df6871e
diff --git a/frontend/src/app/components/wp-table/embedded/wp-embedded-base.component.ts b/frontend/src/app/components/wp-table/embedded/wp-embedded-base.component.ts
index 163375367b9..3000d4af139 100644
--- a/frontend/src/app/components/wp-table/embedded/wp-embedded-base.component.ts
+++ b/frontend/src/app/components/wp-table/embedded/wp-embedded-base.component.ts
@@ -31,7 +31,6 @@ export abstract class WorkPackageEmbeddedBaseComponent extends WorkPackagesViewB
readonly urlParamsHelper:UrlParamsHelperService = this.injector.get(UrlParamsHelperService);
readonly loadingIndicatorService:LoadingIndicatorService = this.injector.get(LoadingIndicatorService);
readonly wpStatesInitialization:WorkPackageStatesInitializationService = this.injector.get(WorkPackageStatesInitializationService);
- readonly currentProject:CurrentProjectService = this.injector.get(CurrentProjectService);
readonly cdRef = this.injector.get(ChangeDetectorRef);
ngOnInit() {
@@ -58,16 +57,12 @@ export abstract class WorkPackageEmbeddedBaseComponent extends WorkPackagesViewB
}
}
- get projectIdentifier() {
- let identifier:string|null = null;
-
+ public get projectIdentifier() {
if (this.configuration.projectContext) {
- identifier = this.currentProject.identifier;
+ return this.currentProject.identifier || undefined;
} else {
- identifier = this.configuration.projectIdentifier;
+ return this.configuration.projectIdentifier || undefined;
}
-
- return identifier || undefined;
}
public buildQueryProps() {
diff --git a/frontend/src/app/modules/calendar/wp-calendar-entry/wp-calendar-entry.component.ts b/frontend/src/app/modules/calendar/wp-calendar-entry/wp-calendar-entry.component.ts
index 2042ad69dc8..2000980cf46 100644
--- a/frontend/src/app/modules/calendar/wp-calendar-entry/wp-calendar-entry.component.ts
+++ b/frontend/src/app/modules/calendar/wp-calendar-entry/wp-calendar-entry.component.ts
@@ -37,15 +37,12 @@ import {WorkPackagesCalendarController} from "core-app/modules/calendar/wp-calen
export class WorkPackagesCalendarEntryComponent extends WorkPackagesViewBase {
@ViewChild(WorkPackagesCalendarController, { static: true }) calendarElement:WorkPackagesCalendarController;
- /** Project identifier of the list */
- projectIdentifier = this.$state.params['projectPath'] || null;
-
protected set loadingIndicator(promise:Promise<unknown>) {
this.loadingIndicatorService.indicator('calendar-entry').promise = promise;
}
public refresh(visibly:boolean, firstPage:boolean):Promise<unknown> {
return this.loadingIndicator =
- this.wpListService.loadCurrentQueryFromParams(this.projectIdentifier);
+ this.wpListService.loadCurrentQueryFromParams(this.projectIdentifier!);
}
}
diff --git a/frontend/src/app/modules/grids/grid/grid.component.ts b/frontend/src/app/modules/grids/grid/grid.component.ts
index 979a5e1cc9f..e7f3166934c 100644
--- a/frontend/src/app/modules/grids/grid/grid.component.ts
+++ b/frontend/src/app/modules/grids/grid/grid.component.ts
@@ -5,7 +5,6 @@ import {Component,
Input,
HostListener} from "@angular/core";
import {GridResource} from "app/modules/hal/resources/grid-resource";
-import {debugLog} from "app/helpers/debug_output";
import {DomSanitizer} from "@angular/platform-browser";
import {GridWidgetsService} from "app/modules/grids/widgets/widgets.service";
import {AbstractWidgetComponent} from "app/modules/grids/widgets/abstract-widget.component";
diff --git a/frontend/src/app/modules/ifc_models/bcf/container/bcf-container.component.sass b/frontend/src/app/modules/ifc_models/bcf/container/bcf-container.component.sass
deleted file mode 100644
index b5f8a537751..00000000000
--- a/frontend/src/app/modules/ifc_models/bcf/container/bcf-container.component.sass
+++ /dev/null
@@ -1,16 +0,0 @@
-*:host
- height: 100%
- overflow: hidden
- display: grid
- grid-template-columns: 1fr 500px
- grid-template-rows: 60px calc(100% - 60px)
- grid-template-areas: "header header" "ifc-model"
- grid-column-gap: 10px
-
- .toolbar-container
- grid-area: header
-
- .ifc-view--viewer-container
- grid-area: ifc-model
- position: relative
- overflow: hidden
diff --git a/frontend/src/app/modules/ifc_models/bcf/container/bcf-container.component.ts b/frontend/src/app/modules/ifc_models/bcf/container/bcf-container.component.ts
index 7ebfb129695..3b63a2d74b4 100644
--- a/frontend/src/app/modules/ifc_models/bcf/container/bcf-container.component.ts
+++ b/frontend/src/app/modules/ifc_models/bcf/container/bcf-container.component.ts
@@ -7,10 +7,9 @@ import { StateService } from '@uirouter/core';
import {GonService} from "core-app/modules/common/gon/gon.service";
@Component({
- templateUrl: './bcf-container.component.html',
- styleUrls: ['./bcf-container.component.sass']
+ templateUrl: './bcf-container.component.html'
})
-export class BcfContainerComponent {
+export class BCFContainerComponent {
public queryProps:{ [key:string]:any };
public configuration:WorkPackageTableConfigurationObject = {
actionsColumnEnabled: false,
diff --git a/frontend/src/app/modules/ifc_models/empty/empty-component.ts b/frontend/src/app/modules/ifc_models/empty/empty-component.ts
new file mode 100644
index 00000000000..a89a6501239
--- /dev/null
+++ b/frontend/src/app/modules/ifc_models/empty/empty-component.ts
@@ -0,0 +1,7 @@
+import { Component } from '@angular/core';
+
+@Component({
+ template: '<div></div>'
+})
+export class EmptyComponent {
+}
diff --git a/frontend/src/app/modules/ifc_models/ifc-viewer/ifc-viewer.component.ts b/frontend/src/app/modules/ifc_models/ifc-viewer/ifc-viewer.component.ts
index fc4ca2cdd9c..99d4b3b0076 100644
--- a/frontend/src/app/modules/ifc_models/ifc-viewer/ifc-viewer.component.ts
+++ b/frontend/src/app/modules/ifc_models/ifc-viewer/ifc-viewer.component.ts
@@ -28,8 +28,7 @@
/// <reference path="../xeokit/xeokit.d.ts" />
-import {Component, ElementRef, Input, OnDestroy, OnInit, ViewEncapsulation} from '@angular/core';
-import {DynamicBootstrapper} from "core-app/globals/dynamic-bootstrapper";
+import {Component, ElementRef, OnInit} from '@angular/core';
import {XeokitServer} from "../xeokit/xeokit-server";
import {GonService} from "core-app/modules/common/gon/gon.service";
diff --git a/frontend/src/app/modules/ifc_models/openproject-ifc-models.module.ts b/frontend/src/app/modules/ifc_models/openproject-ifc-models.module.ts
index 6f6e37a2b7e..12a19d41d81 100644
--- a/frontend/src/app/modules/ifc_models/openproject-ifc-models.module.ts
+++ b/frontend/src/app/modules/ifc_models/openproject-ifc-models.module.ts
@@ -31,10 +31,11 @@ import {UIRouterModule} from '@uirouter/angular';
import {OpenprojectCommonModule} from "core-app/modules/common/openproject-common.module";
import {IFCViewerComponent} from './ifc-viewer/ifc-viewer.component';
import {IFC_ROUTES, uiRouterIFCConfiguration} from "core-app/modules/ifc_models/openproject-ifc-models.routes";
-import {IfcViewerPageComponent} from "core-app/modules/ifc_models/pages/viewer/ifc-viewer-page.component";
-import {BcfContainerComponent} from "core-app/modules/ifc_models/bcf/container/bcf-container.component";
+import {IFCViewerPageComponent} from "core-app/modules/ifc_models/pages/viewer/ifc-viewer-page.component";
+import {BCFContainerComponent} from "core-app/modules/ifc_models/bcf/container/bcf-container.component";
import {BimViewToggleDropdownDirective} from "core-app/modules/ifc_models/view-toggle/bim-view-toggle-dropdown.directive";
import {BimViewToggleComponent} from "core-app/modules/ifc_models/view-toggle/bim-view-toggle.component";
+import {EmptyComponent} from "core-app/modules/ifc_models/empty/empty-component";
@NgModule({
imports: [
@@ -49,8 +50,11 @@ import {BimViewToggleComponent} from "core-app/modules/ifc_models/view-toggle/bi
],
declarations: [
// Pages
- IfcViewerPageComponent,
- BcfContainerComponent,
+ IFCViewerPageComponent,
+
+ // Regions of pages
+ EmptyComponent,
+ BCFContainerComponent,
// View selector
BimViewToggleComponent,
diff --git a/frontend/src/app/modules/ifc_models/openproject-ifc-models.routes.ts b/frontend/src/app/modules/ifc_models/openproject-ifc-models.routes.ts
index 24b803be037..1ad5f1891e9 100644
--- a/frontend/src/app/modules/ifc_models/openproject-ifc-models.routes.ts
+++ b/frontend/src/app/modules/ifc_models/openproject-ifc-models.routes.ts
@@ -26,10 +26,11 @@
// See doc/COPYRIGHT.rdoc for more details.
// ++
import {Ng2StateDeclaration, UIRouter} from '@uirouter/angular';
-import {IfcViewerPageComponent} from "core-app/modules/ifc_models/pages/viewer/ifc-viewer-page.component";
-import {BcfContainerComponent} from "core-app/modules/ifc_models/bcf/container/bcf-container.component";
-import {ApplicationBaseComponent} from "core-app/modules/router/base/application-base.component";
+import {IFCViewerPageComponent} from "core-app/modules/ifc_models/pages/viewer/ifc-viewer-page.component";
+import {BCFContainerComponent} from "core-app/modules/ifc_models/bcf/container/bcf-container.component";
import {IFCViewerComponent} from "core-app/modules/ifc_models/ifc-viewer/ifc-viewer.component";
+import {WorkPackagesBaseComponent} from "core-app/modules/work_packages/routing/wp-base/wp--base.component";
+import {EmptyComponent} from "core-app/modules/ifc_models/empty/empty-component";
export const IFC_ROUTES:Ng2StateDeclaration[] = [
{
@@ -37,48 +38,58 @@ export const IFC_ROUTES:Ng2StateDeclaration[] = [
parent: 'root',
url: '/ifc_models',
abstract: true,
- component: IfcViewerPageComponent
+ component: WorkPackagesBaseComponent
},
{
- name: 'bim.list',
+ name: 'bim.space',
+ url: '',
+ abstract: true,
+ component: IFCViewerPageComponent
+ },
+ {
+ name: 'bim.space.list',
url: '/list',
- component: IfcViewerPageComponent,
+ component: IFCViewerPageComponent,
views: {
- right: { component: BcfContainerComponent }
+ list: { component: BCFContainerComponent }
}
},
{
- name: 'bim.defaults',
+ name: 'bim.space.defaults',
url: '/defaults',
- component: IfcViewerPageComponent,
+ component: IFCViewerPageComponent,
views: {
- left: { component: IFCViewerComponent }
+ viewer: { component: IFCViewerComponent },
+ list: { component: BCFContainerComponent }
}
},
{
- name: 'bim.defaults.split',
- url: '/split',
- component: IfcViewerPageComponent,
+ name: 'bim.space.defaults.model',
+ url: '/model',
+ component: IFCViewerPageComponent,
views: {
- left: { component: IFCViewerComponent },
- right: { component: BcfContainerComponent }
+ // Retarget and by that override the grandparent views
+ // https://ui-router.github.io/guide/views#relative-parent-state
+ 'list@^.^': { component: EmptyComponent }
}
},
{
- name: 'bim.show',
+ name: 'bim.space.show',
url: '/{model_id:[0-9]+}',
- component: IfcViewerPageComponent,
+ component: IFCViewerPageComponent,
views: {
- left: { component: IfcViewerPageComponent }
+ viewer: { component: IFCViewerComponent },
+ list: { component: BCFContainerComponent }
}
},
{
- name: 'bim.show.split',
- url: '/split',
- component: IfcViewerPageComponent,
+ name: 'bim.space.show.model',
+ url: '/model',
+ component: IFCViewerPageComponent,
views: {
- left: { component: IFCViewerComponent },
- right: { component: BcfContainerComponent }
+ // Retarget and by that override the grandparent views
+ // https://ui-router.github.io/guide/views#relative-parent-state
+ 'list@^.^': { component: EmptyComponent }
}
},
];
diff --git a/frontend/src/app/modules/ifc_models/pages/viewer/ifc-viewer-page.component.html b/frontend/src/app/modules/ifc_models/pages/viewer/ifc-viewer-page.component.html
index 4c83bc538ef..7b92848d1be 100644
--- a/frontend/src/app/modules/ifc_models/pages/viewer/ifc-viewer-page.component.html
+++ b/frontend/src/app/modules/ifc_models/pages/viewer/ifc-viewer-page.component.html
@@ -25,15 +25,10 @@
</div>
</div>
-<div class="ifc-view--split-container">
- <div class="ifc-view--viewer-container"
- [ngClass]="{ '-active': viewerActive }"
- ui-view="left">
- </div>
+<div class="ifc-view--viewer-container"
+ ui-view="viewer">
+</div>
- <div class="ifc-view--table-container"
- [ngClass]="{ '-active': tableActive }"
- ui-view="right"
- wp-isolated-query-space>
- </div>
+<div class="ifc-view--table-container"
+ ui-view="list">
</div>
diff --git a/frontend/src/app/modules/ifc_models/pages/viewer/ifc-viewer-page.component.sass b/frontend/src/app/modules/ifc_models/pages/viewer/ifc-viewer-page.component.sass
index 9117c9a122c..12ac980d4f8 100644
--- a/frontend/src/app/modules/ifc_models/pages/viewer/ifc-viewer-page.component.sass
+++ b/frontend/src/app/modules/ifc_models/pages/viewer/ifc-viewer-page.component.sass
@@ -4,22 +4,23 @@
display: grid
grid-template-columns: 1fr 500px
grid-template-rows: 60px calc(100% - 60px)
- grid-template-areas: "header header" "ifc-model ifc-model"
grid-column-gap: 10px
+ &.-split
+ grid-template-areas: "header header" "viewer list"
+
+ &.-viewer
+ grid-template-areas: "header header" "viewer viewer"
+
+ &.-list
+ grid-template-areas: "header header" "list list"
+
.toolbar-container
grid-area: header
- .ifc-view--split-container
- grid-area: ifc-model
+ .ifc-view--viewer-container
+ grid-area: viewer
position: relative
- overflow: hidden
- display: flex
- .ifc-view--viewer-container,
.ifc-view--table-container
- display: none
-
- &.-active
- display: block
- flex: 1
+ grid-area: list
diff --git a/frontend/src/app/modules/ifc_models/pages/viewer/ifc-viewer-page.component.ts b/frontend/src/app/modules/ifc_models/pages/viewer/ifc-viewer-page.component.ts
index 4470be72bc0..f12cf99c748 100644
--- a/frontend/src/app/modules/ifc_models/pages/viewer/ifc-viewer-page.component.ts
+++ b/frontend/src/app/modules/ifc_models/pages/viewer/ifc-viewer-page.component.ts
@@ -1,60 +1,66 @@
-import {Component} from "@angular/core";
-import {I18nService} from "core-app/modules/common/i18n/i18n.service";
+import {Component, Injector, HostBinding, ChangeDetectionStrategy} from "@angular/core";
import {PathHelperService} from "core-app/modules/common/path-helper/path-helper.service";
-import {CurrentProjectService} from "core-components/projects/current-project.service";
-import {WorkPackageTableConfigurationObject} from "core-components/wp-table/wp-table-configuration";
-import { StateService } from '@uirouter/core';
import {GonService} from "core-app/modules/common/gon/gon.service";
+import {WorkPackagesViewBase} from "core-app/modules/work_packages/routing/wp-view-base/work-packages-view.base";
@Component({
templateUrl: './ifc-viewer-page.component.html',
- styleUrls: ['./ifc-viewer-page.component.sass']
+ styleUrls: ['./ifc-viewer-page.component.sass'],
+ changeDetection: ChangeDetectionStrategy.OnPush,
})
-export class IfcViewerPageComponent {
- public text = {
- title: this.i18n.t('js.ifc_models.models.default'),
- manage: this.i18n.t('js.ifc_models.models.manage'),
- delete: this.i18n.t('js.button_delete'),
- edit: this.i18n.t('js.button_edit'),
- areYouSure: this.i18n.t('js.text_are_you_sure')
+export class IFCViewerPageComponent extends WorkPackagesViewBase {
+ text = {
+ title: this.I18n.t('js.ifc_models.models.default'),
+ manage: this.I18n.t('js.ifc_models.models.manage'),
+ delete: this.I18n.t('js.button_delete'),
+ edit: this.I18n.t('js.button_edit'),
+ areYouSure: this.I18n.t('js.text_are_you_sure')
};
- constructor(readonly state:StateService,
- readonly i18n:I18nService,
- readonly paths:PathHelperService,
- readonly currentProject:CurrentProjectService,
- readonly gon:GonService) {
+ constructor(readonly paths:PathHelperService,
+ readonly gon:GonService,
+ readonly injector:Injector) {
+ super(injector);
}
- public get title() {
- if (this.state.current.name === 'bim_defaults') {
- return this.i18n.t('js.ifc_models.models.default');
+ @HostBinding('class')
+ get gridTemplateAreas() {
+ if (this.$state.includes('bim.space.list')) {
+ return '-list';
+ } else if (this.$state.includes('bim.space.*.model')) {
+ return '-viewer';
} else {
- return this.gonIFC['models'][0]['name'];
+ return '-split';
}
}
- public get projectIdentifier() {
- return this.currentProject.identifier!;
+ public get title() {
+ if (this.$state.includes('bim.space.defaults')) {
+ return this.I18n.t('js.ifc_models.models.default');
+ } else {
+ return this.gonIFC['models'][0]['name'];
+ }
}
public get manageIFCPath() {
- return this.paths.ifcModelsPath(this.projectIdentifier);
+ return this.paths.ifcModelsPath(this.projectIdentifier!);
}
- public get viewerActive() {
- return this.state.includes('bim.defaults') || this.state.includes('bim.show');
+ public get manageAllowed() {
+ return this.gonIFC.permissions.manage;
}
- public get tableActive() {
- return this.state.includes('bim.list') || this.state.includes('bim.*.split');
+ private get gonIFC() {
+ return (this.gon.get('ifc_models') as any);
}
- public get manageAllowed() {
- return this.gonIFC.permissions.manage;
+ protected set loadingIndicator(promise:Promise<unknown>) {
+ // TODO: do something useful
}
- private get gonIFC() {
- return (this.gon.get('ifc_models') as any)
+ public refresh(visibly:boolean, firstPage:boolean):Promise<unknown> {
+ // TODO: do something useful
+ return this.loadingIndicator =
+ this.wpListService.loadCurrentQueryFromParams(this.projectIdentifier);
}
}
diff --git a/frontend/src/app/modules/ifc_models/view-toggle/bim-view-toggle-dropdown.directive.ts b/frontend/src/app/modules/ifc_models/view-toggle/bim-view-toggle-dropdown.directive.ts
index 4244697fae1..99ae9b51a5d 100644
--- a/frontend/src/app/modules/ifc_models/view-toggle/bim-view-toggle-dropdown.directive.ts
+++ b/frontend/src/app/modules/ifc_models/view-toggle/bim-view-toggle-dropdown.directive.ts
@@ -69,15 +69,16 @@ export class BimViewToggleDropdownDirective extends OpContextMenuTrigger {
linkText: this.I18n.t('js.ifc_models.views.' + key),
onClick: (evt:any) => {
switch (key) {
+ // TODO: actually make switching states work
+ // TODO: differentiate between defaults and single model
case bimListViewIdentifier:
- this.state.go('bim.list');
+ this.state.go('bim.space.list');
break;
case bimViewerViewIdentifier:
- // TODO use correct route
- this.state.go('bim.defaults');
+ this.state.go('bim.space.default.model');
break;
case bimSplitViewIdentifier:
- this.state.go('bim.defaults.split');
+ this.state.go('bim.space.default');
break;
}
diff --git a/frontend/src/app/modules/ifc_models/view-toggle/bim-view-toggle.component.ts b/frontend/src/app/modules/ifc_models/view-toggle/bim-view-toggle.component.ts
index 23d4399873b..b6948a7014b 100644
--- a/frontend/src/app/modules/ifc_models/view-toggle/bim-view-toggle.component.ts
+++ b/frontend/src/app/modules/ifc_models/view-toggle/bim-view-toggle.component.ts
@@ -85,12 +85,12 @@ export class BimViewToggleComponent implements OnInit, OnDestroy {
}
private detectView() {
- if (this.state.current.name === 'bim.list') {
+ if (this.state.current.name === 'bim.space.list') {
this.view = bimListViewIdentifier;
- } else if (this.state.includes('bim.**.split')) {
- this.view = bimSplitViewIdentifier;
- } else {
+ } else if (this.state.includes('bim.**.model')) {
this.view = bimViewerViewIdentifier;
+ } else {
+ this.view = bimSplitViewIdentifier;
}
}
diff --git a/frontend/src/app/modules/work_packages/routing/wp-list/wp-list.component.ts b/frontend/src/app/modules/work_packages/routing/wp-list/wp-list.component.ts
index d980abf9d87..3df9d63da89 100644
--- a/frontend/src/app/modules/work_packages/routing/wp-list/wp-list.component.ts
+++ b/frontend/src/app/modules/work_packages/routing/wp-list/wp-list.component.ts
@@ -39,7 +39,6 @@ import {wpDisplayCardRepresentation} from "core-app/modules/work_packages/routin
import {WorkPackageTableConfigurationObject} from "core-components/wp-table/wp-table-configuration";
import {HalResourceNotificationService} from "core-app/modules/hal/services/hal-resource-notification.service";
import {WorkPackageNotificationService} from "core-app/modules/work_packages/notifications/work-package-notification.service";
-import {scrollHeaderOnMobile} from "core-app/globals/global-listeners/top-menu-scroll";
@Component({
selector: 'wp-list',
@@ -80,9 +79,6 @@ export class WorkPackagesListComponent extends WorkPackagesViewBase implements O
/** Determine when query is initially loaded */
tableInformationLoaded = false;
- /** Project identifier of the list */
- projectIdentifier = this.$state.params['projectPath'] || null;
-
/** An overlay over the table shown for example when the filters are invalid */
showResultOverlay = false;
diff --git a/frontend/src/app/modules/work_packages/routing/wp-view-base/work-packages-view.base.ts b/frontend/src/app/modules/work_packages/routing/wp-view-base/work-packages-view.base.ts
index 043ae30e391..11ee7ed118a 100644
--- a/frontend/src/app/modules/work_packages/routing/wp-view-base/work-packages-view.base.ts
+++ b/frontend/src/app/modules/work_packages/routing/wp-view-base/work-packages-view.base.ts
@@ -56,6 +56,7 @@ import {HalEvent, HalEventsService} from "core-app/modules/hal/services/hal-even
import {HalResourceNotificationService} from "core-app/modules/hal/services/hal-resource-notification.service";
import {WorkPackageNotificationService} from "core-app/modules/work_packages/notifications/work-package-notification.service";
import {DeviceService} from "core-app/modules/common/browser/device.service";
+import {CurrentProjectService} from "core-components/projects/current-project.service";
export abstract class WorkPackagesViewBase implements OnInit, OnDestroy {
@@ -85,6 +86,7 @@ export abstract class WorkPackagesViewBase implements OnInit, OnDestroy {
readonly wpDisplayRepresentation:WorkPackageViewDisplayRepresentationService = this.injector.get(WorkPackageViewDisplayRepresentationService);
readonly halEvents:HalEventsService = this.injector.get(HalEventsService);
readonly deviceService:DeviceService = this.injector.get(DeviceService);
+ readonly currentProject:CurrentProjectService = this.injector.get(CurrentProjectService);
constructor(protected injector:Injector) {
@@ -160,6 +162,10 @@ export abstract class WorkPackagesViewBase implements OnInit, OnDestroy {
});
}
+ public get projectIdentifier() {
+ return this.currentProject.identifier || undefined;
+ }
+
/**
* Setup the listener for members of the table to request a refresh of the entire table
* through the refresh service.
diff --git a/modules/ifc_models/config/routes.rb b/modules/ifc_models/config/routes.rb
index 472bf9b112b..c6b34fce45e 100644
--- a/modules/ifc_models/config/routes.rb
+++ b/modules/ifc_models/config/routes.rb
@@ -31,14 +31,14 @@
OpenProject::Application.routes.draw do
scope '', as: 'ifc_models' do
scope 'projects/:project_id', as: 'project' do
- resources :ifc_models, except: [:show], controller: 'ifc_models/ifc_models' do
+ resources :ifc_models, controller: 'ifc_models/ifc_models' do
collection do
get 'defaults(/*state)', action: :defaults, as: :defaults
get 'list(/*state)', action: :defaults, as: :list
end
member do
- get 'show(/*state)', action: :show
+ get '(/*state)', action: :show
end
end
end