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

navigating between different views with different tabs in boards

bsatarnejade4cca8c85c96
diff --git a/frontend/src/app/components/wp-single-view-tabs/keep-tab/keep-tab.service.ts b/frontend/src/app/components/wp-single-view-tabs/keep-tab/keep-tab.service.ts
index 2cc934cabbe..8cff8e6767c 100644
--- a/frontend/src/app/components/wp-single-view-tabs/keep-tab/keep-tab.service.ts
+++ b/frontend/src/app/components/wp-single-view-tabs/keep-tab/keep-tab.service.ts
@@ -111,12 +111,14 @@ export class KeepTabService {
protected isCurrentState(stateName:string):boolean {
if (stateName === 'show') {
let isShowState = this.$state.includes('work-packages.show.*') ||
- this.$state.includes('bims.show.*');
+ this.$state.includes('bims.show.*') ||
+ this.$state.includes('boards.partitioned.show.*');
return isShowState;
}
if (stateName === 'details') {
let isDetailsState = this.$state.includes('bim.partitioned.split.details.*') ||
- this.$state.includes('work-packages.partitioned.list.details.*');
+ this.$state.includes('work-packages.partitioned.list.details.*') ||
+ this.$state.includes('boards.partitioned.show.details.*');
return isDetailsState;
}
diff --git a/frontend/src/app/modules/common/back-routing/back-routing.service.ts b/frontend/src/app/modules/common/back-routing/back-routing.service.ts
index 9cd98504535..fc8a14ea5cc 100644
--- a/frontend/src/app/modules/common/back-routing/back-routing.service.ts
+++ b/frontend/src/app/modules/common/back-routing/back-routing.service.ts
@@ -60,7 +60,7 @@ export class BackRoutingService {
if (preferListOverSplit) {
this.$state.go(baseRoute, this.$state.params);
} else {
- this.$state.go(baseRoute + this.keepTab.currentDetailsSubState, this.$state.params);
+ this.$state.go(baseRoute + this.keepTab.currentDetailsSubState, this.backRoute.params);
}
} else {
this.$state.go(this.backRoute.name, this.backRoute.params);
diff --git a/modules/bim/spec/features/bim_navigation_spec.rb b/modules/bim/spec/features/bim_navigation_spec.rb
index 83d0dc1abb6..c2ee57e89e9 100644
--- a/modules/bim/spec/features/bim_navigation_spec.rb
+++ b/modules/bim/spec/features/bim_navigation_spec.rb
@@ -140,18 +140,19 @@ describe 'BIM navigation spec',
card_view.expect_work_package_not_listed work_package
end
- it 'after going to the full view with a selected tab, the same tab shoud be opened in full screen view and after going back to details view(see #33747)' do
- card_view.open_full_screen_by_details(work_package)
+ it 'after going to the full view with a selected tab,
+ the same tab shoud be opened in full screen view and after going back to details view(see #33747)' do
+ card_view.open_full_screen_by_details(work_package)
- details_view.ensure_page_loaded
- details_view.expect_subject
- details_view.switch_to_tab tab: 'Relations'
+ details_view.ensure_page_loaded
+ details_view.expect_subject
+ details_view.switch_to_tab tab: 'Relations'
- details_view.switch_to_fullscreen
- full_view.expect_tab 'Relations'
+ details_view.switch_to_fullscreen
+ full_view.expect_tab 'Relations'
- full_view.go_back
- details_view.expect_tab 'Relations'
+ full_view.go_back
+ details_view.expect_tab 'Relations'
end
end
end