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

add onsave method to be used in WP configurations tab

bsatarnejada2a0ff941241
diff --git a/frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline.component.ts b/frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline.component.ts
index b40e08eb82f..0662e00f879 100644
--- a/frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline.component.ts
+++ b/frontend/src/app/features/work-packages/components/wp-baseline/baseline/baseline.component.ts
@@ -31,6 +31,7 @@ import {
Component,
EventEmitter,
HostBinding,
+ Input,
OnInit,
Output,
} from '@angular/core';
@@ -61,6 +62,8 @@ export class OpBaselineComponent extends UntilDestroyedMixin implements OnInit {
@Output() submitted = new EventEmitter<void>();
+ @Input() showActionBar? = false;
+
public dropDownDescription = '';
public nonWorkingDays:IDay[] = [];
@@ -157,6 +160,10 @@ export class OpBaselineComponent extends UntilDestroyedMixin implements OnInit {
public onSubmit(e:Event):void {
e.preventDefault();
+ this.onSave();
+ }
+
+ public onSave() {
if (this.selectedFilter === '-') {
this.wpTableBaseline.disable();
} else {