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

Change default selected time to 08:00

Oliver Günthera251ec54d3ac
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 59d02c4661f..73cb9117ca7 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
@@ -61,6 +61,8 @@ import { BannersService } from 'core-app/core/enterprise/banners.service';
import { enterpriseDocsUrl } from 'core-app/core/setup/globals/constants.const';
import { DayElement } from 'flatpickr/dist/types/instance';
+const DEFAULT_SELECTED_TIME = '08:00';
+
@Component({
selector: 'op-baseline',
changeDetection: ChangeDetectionStrategy.OnPush,
@@ -193,7 +195,7 @@ export class OpBaselineComponent extends UntilDestroyedMixin implements OnInit {
}
public resetSelection():void {
- this.selectedTimes = ['00:00', '00:00'];
+ this.selectedTimes = [DEFAULT_SELECTED_TIME, DEFAULT_SELECTED_TIME];
this.selectedDates = ['', ''];
this.selectedFilter = null;
this.mappedSelectedDate = null;