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

hide changes button behind feature flag

bsatarnejadef269ab4b585
diff --git a/frontend/src/app/features/work-packages/routing/partitioned-query-space-page/partitioned-query-space-page.component.ts b/frontend/src/app/features/work-packages/routing/partitioned-query-space-page/partitioned-query-space-page.component.ts
index 7f324d3985d..8db418cab03 100644
--- a/frontend/src/app/features/work-packages/routing/partitioned-query-space-page/partitioned-query-space-page.component.ts
+++ b/frontend/src/app/features/work-packages/routing/partitioned-query-space-page/partitioned-query-space-page.component.ts
@@ -48,6 +48,7 @@ import { InviteUserModalComponent } from 'core-app/features/invite-user-modal/in
import { WorkPackageFilterContainerComponent } from 'core-app/features/work-packages/components/filters/filter-container/filter-container.directive';
import isPersistedResource from 'core-app/features/hal/helpers/is-persisted-resource';
import { UIRouterGlobals } from '@uirouter/core';
+import { ConfigurationService } from 'core-app/core/config/configuration.service';
export interface DynamicComponentDefinition {
component:ComponentType<any>;
@@ -83,6 +84,8 @@ export class PartitionedQuerySpacePageComponent extends WorkPackagesViewBase imp
@InjectField() uiRouterGlobals:UIRouterGlobals;
+ @InjectField() configuration:ConfigurationService;
+
text:{ [key:string]:string } = {
jump_to_pagination: this.I18n.t('js.work_packages.jump_marks.pagination'),
text_jump_to_pagination: this.I18n.t('js.work_packages.jump_marks.label_pagination'),
diff --git a/frontend/src/app/features/work-packages/routing/wp-view-page/wp-view-page.component.ts b/frontend/src/app/features/work-packages/routing/wp-view-page/wp-view-page.component.ts
index 9b41a3bf409..7d209db4305 100644
--- a/frontend/src/app/features/work-packages/routing/wp-view-page/wp-view-page.component.ts
+++ b/frontend/src/app/features/work-packages/routing/wp-view-page/wp-view-page.component.ts
@@ -75,6 +75,7 @@ export class WorkPackageViewPageComponent extends PartitionedQuerySpacePageCompo
},
{
component: OpShowChangesComponent,
+ show: () => this.configuration.activeFeatureFlags.includes('showChanges'),
},
{
component: WorkPackageFilterButtonComponent,