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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Add ChangeDetection.onPush where requested
Oliver Günther59f5d0c2695b
diff --git a/frontend/src/app/components/modals/editor/macro-wp-button-modal/wp-button-macro.modal.ts b/frontend/src/app/components/modals/editor/macro-wp-button-modal/wp-button-macro.modal.tsindex 5319259aa32..b9cf9e8ea38 100644--- a/frontend/src/app/components/modals/editor/macro-wp-button-modal/wp-button-macro.modal.ts+++ b/frontend/src/app/components/modals/editor/macro-wp-button-modal/wp-button-macro.modal.ts@@ -28,7 +28,15 @@import {OpModalComponent} from "core-components/op-modals/op-modal.component";import {OpModalLocalsToken} from "core-components/op-modals/op-modal.service";-import {AfterViewInit, ChangeDetectorRef, Component, ElementRef, Inject, ViewChild} from "@angular/core";+import {+ AfterViewInit,+ ChangeDetectionStrategy,+ ChangeDetectorRef,+ Component,+ ElementRef,+ Inject,+ ViewChild+} from "@angular/core";import {OpModalLocalsMap} from "core-components/op-modals/op-modal.types";import {I18nService} from "core-app/modules/common/i18n/i18n.service";import {TypeResource} from "core-app/modules/hal/resources/type-resource";@@ -36,7 +44,8 @@ import {CurrentProjectService} from "core-components/projects/current-project.seimport {WorkPackageDmService} from "core-app/modules/hal/dm-services/work-package-dm.service";@Component({- templateUrl: './wp-button-macro.modal.html'+ templateUrl: './wp-button-macro.modal.html',+ changeDetection: ChangeDetectionStrategy.OnPush})export class WpButtonMacroModal extends OpModalComponent implements AfterViewInit {diff --git a/frontend/src/app/components/wp-new/wp-new-full-view.component.ts b/frontend/src/app/components/wp-new/wp-new-full-view.component.tsindex f0a75fa54be..6e5433e9fc7 100644--- a/frontend/src/app/components/wp-new/wp-new-full-view.component.ts+++ b/frontend/src/app/components/wp-new/wp-new-full-view.component.ts@@ -27,12 +27,13 @@// ++import {WorkPackageCreateComponent} from 'core-components/wp-new/wp-create.component';-import {Component} from '@angular/core';+import {ChangeDetectionStrategy, Component} from '@angular/core';@Component({selector: 'wp-new-full-view',host: { 'class': 'work-packages-page--ui-view' },- templateUrl: './wp-new-full-view.html'+ templateUrl: './wp-new-full-view.html',+ changeDetection: ChangeDetectionStrategy.OnPush})export class WorkPackageNewFullViewComponent extends WorkPackageCreateComponent {public successState:string = 'work-packages.show';diff --git a/frontend/src/app/components/wp-new/wp-new-split-view.component.ts b/frontend/src/app/components/wp-new/wp-new-split-view.component.tsindex a192a07e976..2450ca05f0e 100644--- a/frontend/src/app/components/wp-new/wp-new-split-view.component.ts+++ b/frontend/src/app/components/wp-new/wp-new-split-view.component.ts@@ -27,11 +27,12 @@// ++import {WorkPackageCreateComponent} from 'core-components/wp-new/wp-create.component';-import {Component} from '@angular/core';+import {ChangeDetectionStrategy, Component} from '@angular/core';@Component({selector: 'wp-new-split-view',- templateUrl: './wp-new-split-view.html'+ templateUrl: './wp-new-split-view.html',+ changeDetection: ChangeDetectionStrategy.OnPush,})export class WorkPackageNewSplitViewComponent extends WorkPackageCreateComponent {public successState:string = 'work-packages.partitioned.list.details';