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

render ifc default models within angular page

ulferts333c2c068e1d
diff --git a/config/routes.rb b/config/routes.rb
index d4f6f910233..bc644b0b215 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -1,4 +1,5 @@
#-- encoding: UTF-8
+
#-- copyright
# OpenProject is an open source project management software.
# Copyright (C) 2012-2020 the OpenProject GmbH
diff --git a/frontend/src/app/components/modals/wp-destroy-modal/wp-destroy.modal.ts b/frontend/src/app/components/modals/wp-destroy-modal/wp-destroy.modal.ts
index 61aad136d57..c5c882b357b 100644
--- a/frontend/src/app/components/modals/wp-destroy-modal/wp-destroy.modal.ts
+++ b/frontend/src/app/components/modals/wp-destroy-modal/wp-destroy.modal.ts
@@ -98,7 +98,7 @@ export class WpDestroyModal extends OpModalComponent implements OnInit {
this.text.text = this.I18n.t('js.modals.destroy_work_package.text', {
label: this.workPackageLabel,
count: this.workPackages.length
- }),
+ });
this.text.childCount = (wp:WorkPackageResource) => {
const count = this.children(wp).length;
diff --git a/frontend/src/app/modules/common/path-helper/path-helper.service.ts b/frontend/src/app/modules/common/path-helper/path-helper.service.ts
index 06755fa015d..c204a10797d 100644
--- a/frontend/src/app/modules/common/path-helper/path-helper.service.ts
+++ b/frontend/src/app/modules/common/path-helper/path-helper.service.ts
@@ -54,6 +54,10 @@ export class PathHelperService {
}
}
+ public ifcModelsPath(projectIdentifier:string) {
+ return this.staticBase + `/projects/${projectIdentifier}/ifc_models`;
+ }
+
public highlightingCssPath() {
return this.staticBase + '/highlighting/styles';
}
diff --git a/frontend/src/app/modules/ifc_models/ifc-base-view/ifc-base-view.component.ts b/frontend/src/app/modules/ifc_models/ifc-base-view/ifc-base-view.component.ts
index d9f2464249a..e55a8650964 100644
--- a/frontend/src/app/modules/ifc_models/ifc-base-view/ifc-base-view.component.ts
+++ b/frontend/src/app/modules/ifc_models/ifc-base-view/ifc-base-view.component.ts
@@ -36,23 +36,22 @@ import {WorkPackageTableConfigurationObject} from "core-components/wp-table/wp-t
selector: 'ifc-base-view',
styleUrls: ['./ifc-base-view.component.sass']
})
-export class IfcBaseViewComponent {
+export class IFCBaseViewComponent {
public queryProps:{ [key:string]:any };
- public configuration:WorkPackageTableConfigurationObject;
+ public configuration:WorkPackageTableConfigurationObject = {
+ actionsColumnEnabled: false,
+ columnMenuEnabled: false,
+ contextMenuEnabled: false,
+ inlineCreateEnabled: false,
+ withFilters: true,
+ showFilterButton: false,
+ isCardView: true
+ };
- private filters:any[] = [];
+private filters:any[] = [];
constructor() {
- this.configuration = {
- actionsColumnEnabled: false,
- columnMenuEnabled: false,
- contextMenuEnabled: false,
- inlineCreateEnabled: false,
- withFilters: true,
- showFilterButton: false,
- isCardView: true
- };
-
+ // TODO: Limit to project
this.filters.push({ status: {
operator: 'o',
values: [] }});
@@ -67,5 +66,5 @@ export class IfcBaseViewComponent {
}
DynamicBootstrapper.register({
- selector: 'ifc-base-view', cls: IfcBaseViewComponent
+ selector: 'ifc-base-view', cls: IFCBaseViewComponent
});
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 80a922859cb..34c39aee3b7 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
@@ -25,28 +25,68 @@
//
// See doc/COPYRIGHT.rdoc for more details.
// ++
-
import {NgModule} from "@angular/core";
-import {IFCViewerComponent} from "core-app/modules/ifc_models/ifc-viewer/ifc-viewer.component";
-import {IfcBaseViewComponent} from "core-app/modules/ifc_models/ifc-base-view/ifc-base-view.component";
+import {IFCBaseViewComponent} from "core-app/modules/ifc_models/ifc-base-view/ifc-base-view.component";
import {OpenprojectWorkPackagesModule} from "core-app/modules/work_packages/openproject-work-packages.module";
+import { Ng2StateDeclaration, UIRouterModule, UIRouter } from '@uirouter/angular';
+import {IFCIndexPageComponent} from "core-app/modules/ifc_models/pages/index/ifc-index-page.component";
+import {OpenprojectCommonModule} from "core-app/modules/common/openproject-common.module";
+import { IFCViewerComponent } from './ifc-viewer/ifc-viewer.component';
+
+export const IFC_ROUTES:Ng2StateDeclaration[] = [
+ // TODO: properly namespace the routes e.g. bim.something
+ {
+ name: 'bim_defaults',
+ parent: 'root',
+ url: '/ifc_models/defaults/',
+ component: IFCIndexPageComponent
+ },
+ {
+ name: 'bim_show',
+ parent: 'root',
+ url: '/ifc_models/{model_id:[0-9]+}/',
+ component: IFCIndexPageComponent,
+ }
+];
+
+export function uiRouterIFCConfiguration(uiRouter:UIRouter) {
+ uiRouter.urlService.rules
+ .when(
+ new RegExp("^/projects/(.*)/ifc_models/defaults$"),
+ match => `/projects/${match[1]}/ifc_models/defaults/`
+ );
+
+ uiRouter.urlService.rules
+ .when(
+ new RegExp("^/projects/(.*)/ifc_models/([0-9]+)$"),
+ match => `/projects/${match[1]}/ifc_models/${match[2]}/`
+ );
+}
@NgModule({
imports: [
- OpenprojectWorkPackagesModule
+ OpenprojectCommonModule,
+ OpenprojectWorkPackagesModule,
+ UIRouterModule.forChild({
+ states: IFC_ROUTES,
+ config: uiRouterIFCConfiguration
+ })
],
providers: [
],
declarations: [
- IfcBaseViewComponent,
+ // Pages
+ IFCIndexPageComponent,
+ IFCBaseViewComponent,
+
IFCViewerComponent
],
exports: [
- IfcBaseViewComponent,
+ IFCBaseViewComponent,
IFCViewerComponent
],
entryComponents: [
- IfcBaseViewComponent,
+ IFCBaseViewComponent,
IFCViewerComponent
]
})
diff --git a/frontend/src/app/modules/ifc_models/pages/index/ifc-index-page.component.html b/frontend/src/app/modules/ifc_models/pages/index/ifc-index-page.component.html
new file mode 100644
index 00000000000..164f794ac89
--- /dev/null
+++ b/frontend/src/app/modules/ifc_models/pages/index/ifc-index-page.component.html
@@ -0,0 +1,33 @@
+<div class="toolbar-container">
+ <div class="toolbar">
+ <div class="title-container">
+ <h2 [textContent]="title">
+ </h2>
+ </div>
+ <ul class="toolbar-items">
+ <li class="toolbar-item">
+ <a class="button"
+ [href]="manageIFCPath">
+ <op-icon icon-classes="button--icon icon-settings2"></op-icon>
+ <span class="button--text"
+ [textContent]="text.manage"
+ aria-hidden="true"></span>
+ </a>
+ </li>
+ <li class="toolbar-item hidden-for-mobile">
+ <zen-mode-toggle-button></zen-mode-toggle-button>
+ </li>
+ </ul>
+ </div>
+</div>
+
+<div class="ifc-view--viewer-container">
+ <ifc-viewer></ifc-viewer>
+</div>
+
+<div class="ifc-view--table-container" wp-isolated-query-space>
+ <wp-embedded-table [queryProps]="queryProps"
+ [configuration]="configuration"
+ [externalHeight]="true">
+ </wp-embedded-table>
+</div>
diff --git a/frontend/src/app/modules/ifc_models/pages/index/ifc-index-page.component.sass b/frontend/src/app/modules/ifc_models/pages/index/ifc-index-page.component.sass
new file mode 100644
index 00000000000..641b41b48a0
--- /dev/null
+++ b/frontend/src/app/modules/ifc_models/pages/index/ifc-index-page.component.sass
@@ -0,0 +1,19 @@
+*: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 wp-list"
+ grid-column-gap: 10px
+
+ .toolbar-container
+ grid-area: header
+
+ .ifc-view--view-table-container
+ grid-area: wp-list
+
+ .ifc-view--viewer-container
+ grid-area: ifc-model
+ position: relative
+ overflow: hidden
diff --git a/frontend/src/app/modules/ifc_models/pages/index/ifc-index-page.component.ts b/frontend/src/app/modules/ifc_models/pages/index/ifc-index-page.component.ts
new file mode 100644
index 00000000000..db354b94fc4
--- /dev/null
+++ b/frontend/src/app/modules/ifc_models/pages/index/ifc-index-page.component.ts
@@ -0,0 +1,75 @@
+import {Component} from "@angular/core";
+import {I18nService} from "core-app/modules/common/i18n/i18n.service";
+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";
+
+@Component({
+ templateUrl: './ifc-index-page.component.html',
+ styleUrls: ['./ifc-index-page.component.sass']
+})
+export class IFCIndexPageComponent {
+ 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')
+ };
+ public queryProps:{ [key:string]:any };
+ public configuration:WorkPackageTableConfigurationObject = {
+ actionsColumnEnabled: false,
+ columnMenuEnabled: false,
+ contextMenuEnabled: false,
+ inlineCreateEnabled: false,
+ withFilters: true,
+ showFilterButton: false,
+ isCardView: true
+ };
+
+ private filters:any[] = [];
+
+ constructor(readonly state:StateService,
+ readonly i18n:I18nService,
+ readonly paths:PathHelperService,
+ readonly currentProject:CurrentProjectService,
+ readonly gon:GonService) {
+
+ this.applyFilters();
+ }
+
+ public get title() {
+ if (this.state.current.name === 'bim_defaults') {
+ return this.i18n.t('js.ifc_models.models.default');
+ } else {
+ return (this.gon.get('ifc_models') as any)['models'][0]['name'];
+ }
+ }
+
+ public get projectIdentifier() {
+ return this.currentProject.identifier!;
+ }
+
+ public get manageIFCPath() {
+ return this.paths.ifcModelsPath(this.projectIdentifier);
+ }
+
+ private applyFilters() {
+ // TODO: Limit to project
+ this.filters.push({
+ status: {
+ operator: 'o',
+ values: []
+ }
+ });
+
+ this.queryProps = {
+ 'columns[]': ['id', 'subject'],
+ filters: JSON.stringify(this.filters),
+ sortBy: JSON.stringify([['updatedAt', 'desc']]),
+ showHierarchies: false
+ };
+ }
+}
diff --git a/frontend/src/app/modules/work_packages/openproject-work-packages.module.ts b/frontend/src/app/modules/work_packages/openproject-work-packages.module.ts
index cb00d028e9c..21f2a197afa 100644
--- a/frontend/src/app/modules/work_packages/openproject-work-packages.module.ts
+++ b/frontend/src/app/modules/work_packages/openproject-work-packages.module.ts
@@ -180,9 +180,6 @@ import { TimeEntryChangeset } from 'core-app/components/time-entries/time-entry-
OpenprojectBcfModule,
OpenprojectProjectsModule,
-
- // Work package custom actions
- //WpCustomActionsModule,
],
providers: [
{
diff --git a/modules/ifc_models/app/assets/stylesheets/ifc_viewer/generic.sass b/modules/ifc_models/app/assets/stylesheets/ifc_viewer/generic.sass
index 6b860ce2c7e..4210d1a035d 100644
--- a/modules/ifc_models/app/assets/stylesheets/ifc_viewer/generic.sass
+++ b/modules/ifc_models/app/assets/stylesheets/ifc_viewer/generic.sass
@@ -16,12 +16,11 @@
overflow: hidden
&.action-show,
- &.action-show_defaults
+ &.action-defaults
#content-wrapper
padding: 10px 20px 20px 20px
+
#content
- display: flex
- flex-direction: column
height: 100%
// Override default behavior to let the viewer span the whole height
@@ -32,38 +31,31 @@
[data-name="ifc_models"] .main-menu--children
overflow-x: hidden !important
-.ifc-view--viewer-container
- flex-grow: 1
- position: relative
- width: 100%
- height: 100%
- overflow: hidden
-
- .ifc-model-viewer--nav-cube-canvas
- position: absolute
- width: 200px
- height: 200px
- bottom: 0
- right: 0
- z-index: 10
+.ifc-model-viewer--nav-cube-canvas
+ position: absolute
+ width: 200px
+ height: 200px
+ bottom: 0
+ right: 0
+ z-index: 10
- .ifc-model-viewer--section-planes-overview-canvas
- position: absolute
- width: 250px
- height: 250px
- top: 50px
- right: 50px
- z-index: 2000
+.ifc-model-viewer--section-planes-overview-canvas
+ position: absolute
+ width: 250px
+ height: 250px
+ top: 50px
+ right: 50px
+ z-index: 2000
.ifc-model-viewer--container
position: relative
width: 100%
height: 100%
- .ifc-model-viewer--model-canvas
- width: 100%
- height: 100%
- background: $gray-lighter
+.ifc-model-viewer--model-canvas
+ width: 100%
+ height: 100%
+ background: $gray-lighter
// -------------------------- XEOKIT specific rules for BUTTONS --------------------------
diff --git a/modules/ifc_models/app/controllers/ifc_models/ifc_models_controller.rb b/modules/ifc_models/app/controllers/ifc_models/ifc_models_controller.rb
index 82fe385fad5..fd8f7765bce 100644
--- a/modules/ifc_models/app/controllers/ifc_models/ifc_models_controller.rb
+++ b/modules/ifc_models/app/controllers/ifc_models/ifc_models_controller.rb
@@ -32,9 +32,9 @@ module ::IFCModels
class IFCModelsController < BaseController
helper_method :gon
- before_action :find_project_by_project_id, only: %i[index new create show show_defaults edit update destroy]
+ before_action :find_project_by_project_id, only: %i[index new create show defaults edit update destroy]
before_action :find_ifc_model_object, except: %i[index new create]
- before_action :find_all_ifc_models, only: %i[show show_defaults index]
+ before_action :find_all_ifc_models, only: %i[show defaults index]
before_action :authorize
@@ -53,7 +53,7 @@ module ::IFCModels
def show; end
- def show_defaults
+ def defaults
@default_ifc_models = @ifc_models.defaults
if @default_ifc_models.empty?
diff --git a/modules/ifc_models/app/views/ifc_models/ifc_models/show_defaults.html.erb b/modules/ifc_models/app/views/ifc_models/ifc_models/defaults.html.erb
similarity index 78%
rename from modules/ifc_models/app/views/ifc_models/ifc_models/show_defaults.html.erb
rename to modules/ifc_models/app/views/ifc_models/ifc_models/defaults.html.erb
index 6205d5f6016..db01c061e67 100644
--- a/modules/ifc_models/app/views/ifc_models/ifc_models/show_defaults.html.erb
+++ b/modules/ifc_models/app/views/ifc_models/ifc_models/defaults.html.erb
@@ -34,17 +34,6 @@ See doc/COPYRIGHT.rdoc for more details.
<%= render partial: 'show_headers', locals: { all_models: @ifc_models, selected_models: @default_ifc_models } %>
-<%= toolbar title: t('ifc_models.label_default_ifc_models') do %>
- <li class="toolbar-item">
- <%= link_to(ifc_models_project_ifc_models_path(@project), class: 'button', accesskey: accesskey(:edit)) do %>
- <%= op_icon('button--icon icon-settings2') %> <%= t('ifc_models.label_manage_models') %>
- <% end %>
- </li>
- <li class="toolbar-item">
- <zen-mode-toggle-button></zen-mode-toggle-button>
- </li>
-<% end %>
-
<% if @default_ifc_models.empty? %>
<%= render partial: 'no_default_notice', locals: { project: @project } %>
<% else %>
@@ -54,5 +43,6 @@ See doc/COPYRIGHT.rdoc for more details.
<%= render partial: 'unconverted_notice', locals: { unconverted: unconverted } %>
<% end %>
- <ifc-base-view></ifc-base-view>
+ <openproject-base></openproject-base>
<% end %>
+
diff --git a/modules/ifc_models/app/views/ifc_models/ifc_models/index.html.erb b/modules/ifc_models/app/views/ifc_models/ifc_models/index.html.erb
index ef553f24365..9b7affc6426 100644
--- a/modules/ifc_models/app/views/ifc_models/ifc_models/index.html.erb
+++ b/modules/ifc_models/app/views/ifc_models/ifc_models/index.html.erb
@@ -42,7 +42,7 @@ See docs/COPYRIGHT.rdoc for more details.
<% end %>
<% if @ifc_models.defaults.any? %>
<li class="toolbar-item">
- <%= link_to show_defaults_ifc_models_project_ifc_models_path,
+ <%= link_to defaults_ifc_models_project_ifc_models_path,
{ class: 'button',
aria: { label: t('ifc_models.label_show_defaults') },
title: t('ifc_models.label_show_defaults') } do %>
diff --git a/modules/ifc_models/app/views/ifc_models/ifc_models/show.html.erb b/modules/ifc_models/app/views/ifc_models/ifc_models/show.html.erb
index 6f0fcb22aa3..9f44e727056 100644
--- a/modules/ifc_models/app/views/ifc_models/ifc_models/show.html.erb
+++ b/modules/ifc_models/app/views/ifc_models/ifc_models/show.html.erb
@@ -34,31 +34,6 @@ See doc/COPYRIGHT.rdoc for more details.
<%= render partial: 'show_headers', locals: { all_models: @ifc_models, selected_models: [@ifc_model] } %>
-<%= toolbar title: @ifc_model.title do %>
- <% if authorize_for('ifc_models/ifc_models', :edit) %>
- <li class="toolbar-item">
- <%= link_to(edit_ifc_models_project_ifc_model_path(@project, @ifc_model), class: 'button', accesskey: accesskey(:edit)) do %>
- <%= op_icon('button--icon icon-edit') %> <%= t(:button_edit) %>
- <% end %>
- </li>
- <% end %>
- <% if authorize_for('ifc_models/ifc_models', :destroy) %>
- <li class="toolbar-item">
- <%= link_to(ifc_models_project_ifc_model_path(@project, @ifc_model), class: 'button', data: { confirm: t(:text_are_you_sure) }, method: :delete) do %>
- <%= op_icon('button--icon icon-delete') %> <%= t(:button_delete) %>
- <% end %>
- </li>
- <% end %>
- <li class="toolbar-item">
- <%= link_to(ifc_models_project_ifc_models_path(@project), class: 'button', accesskey: accesskey(:edit)) do %>
- <%= op_icon('button--icon icon-settings2') %> <%= t('ifc_models.label_manage_models') %>
- <% end %>
- </li>
- <li class="toolbar-item">
- <zen-mode-toggle-button></zen-mode-toggle-button>
- </li>
-<% end %>
-
<% if @ifc_model.converted? %>
- <ifc-base-view></ifc-base-view>
+ <openproject-base></openproject-base>
<% end %>
diff --git a/modules/ifc_models/config/locales/js-en.yml b/modules/ifc_models/config/locales/js-en.yml
new file mode 100644
index 00000000000..464a53bddb2
--- /dev/null
+++ b/modules/ifc_models/config/locales/js-en.yml
@@ -0,0 +1,6 @@
+en:
+ js:
+ ifc_models:
+ models:
+ default: 'Default IFC models'
+ manage: 'Manage models'
diff --git a/modules/ifc_models/config/routes.rb b/modules/ifc_models/config/routes.rb
index 11f8fb59539..34cd6a60570 100644
--- a/modules/ifc_models/config/routes.rb
+++ b/modules/ifc_models/config/routes.rb
@@ -1,20 +1,15 @@
+#-- encoding: UTF-8
+
#-- copyright
-# OpenProject Backlogs Plugin
-#
-# Copyright (C)2013-2014 the OpenProject Foundation (OPF)
-# Copyright (C)2011 Stephan Eckardt, Tim Felgentreff, Marnen Laibow-Koser, Sandro Munda
-# Copyright (C)2010-2011 friflaj
-# Copyright (C)2010 Maxime Guilbot, Andrew Vit, Joakim Kolsjö, ibussieres, Daniel Passos, Jason Vasquez, jpic, Emiliano Heyns
-# Copyright (C)2009-2010 Mark Maglana
-# Copyright (C)2009 Joe Heck, Nate Lowrie
+# OpenProject is a project management system.
+# Copyright (C) 2012-2020 the OpenProject Foundation (OPF)
#
-# This program is free software; you can redistribute it and/or modify it under
-# the terms of the GNU General Public License version 3.
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License version 3.
#
-# OpenProject Backlogs is a derivative work based on ChiliProject Backlogs.
-# The copyright follows:
-# Copyright (C) 2010-2011 - Emiliano Heyns, Mark Maglana, friflaj
-# Copyright (C) 2011 - Jens Ulferts, Gregor Schmidt - Finn GmbH - Berlin, Germany
+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:
+# Copyright (C) 2006-2017 Jean-Philippe Lang
+# Copyright (C) 2010-2013 the ChiliProject Team
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
@@ -34,12 +29,11 @@
#++
OpenProject::Application.routes.draw do
- # get '/projects/:project_id/ifc_models', to: 'ifc_models/ifc_models#index'
scope '', as: 'ifc_models' do
scope 'projects/:project_id', as: 'project' do
resources :ifc_models, controller: 'ifc_models/ifc_models' do
collection do
- get 'show_defaults'
+ get 'defaults'
end
end
end
diff --git a/modules/ifc_models/lib/open_project/ifc_models/engine.rb b/modules/ifc_models/lib/open_project/ifc_models/engine.rb
index aec8864b35c..737b5a056cb 100644
--- a/modules/ifc_models/lib/open_project/ifc_models/engine.rb
+++ b/modules/ifc_models/lib/open_project/ifc_models/engine.rb
@@ -45,7 +45,7 @@ module OpenProject::IFCModels
project_module :ifc_models do
permission :view_ifc_models,
- { 'ifc_models/ifc_models': %i[index show show_defaults] }
+ { 'ifc_models/ifc_models': %i[index show defaults] }
permission :manage_ifc_models,
{ 'ifc_models/ifc_models': %i[index show destroy edit update create new] },
dependencies: %i[view_ifc_models]
@@ -59,7 +59,7 @@ module OpenProject::IFCModels
initializer 'ifc_models.menu' do
::Redmine::MenuManager.map(:project_menu) do |menu|
menu.push(:ifc_models,
- { controller: '/ifc_models/ifc_models', action: 'show_defaults' },
+ { controller: '/ifc_models/ifc_models', action: 'defaults' },
caption: :'ifc_models.label_ifc_models',
param: :project_id,
after: :work_packages,
@@ -67,7 +67,7 @@ module OpenProject::IFCModels
badge: :label_new)
menu.push :ifc_viewer_panels,
- { controller: '/ifc_models/ifc_models', action: 'show_defaults' },
+ { controller: '/ifc_models/ifc_models', action: 'defaults' },
param: :project_id,
parent: :ifc_models,
partial: '/ifc_models/ifc_models/panels'
diff --git a/modules/ifc_models/spec/support/pages/ifc_models/index.rb b/modules/ifc_models/spec/support/pages/ifc_models/index.rb
index f27e289a8fa..4ecac6f48e8 100644
--- a/modules/ifc_models/spec/support/pages/ifc_models/index.rb
+++ b/modules/ifc_models/spec/support/pages/ifc_models/index.rb
@@ -106,7 +106,7 @@ module Pages
click_toolbar_button 'Show defaults'
expect_correct_page_loaded '.ifc-model-viewer--container',
- show_defaults_ifc_models_project_ifc_models_path(project)
+ defaults_ifc_models_project_ifc_models_path(project)
visit!
end
diff --git a/modules/ifc_models/spec/support/pages/ifc_models/show_default.rb b/modules/ifc_models/spec/support/pages/ifc_models/show_default.rb
index 72c3fdfd549..3e0939494f0 100644
--- a/modules/ifc_models/spec/support/pages/ifc_models/show_default.rb
+++ b/modules/ifc_models/spec/support/pages/ifc_models/show_default.rb
@@ -38,7 +38,7 @@ module Pages
end
def path
- show_defaults_ifc_models_project_ifc_models_path(project)
+ defaults_ifc_models_project_ifc_models_path(project)
end
def finished_loading