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
Label for the children's duration clamp added
Aleix Suau7adb679aacc5
diff --git a/config/locales/js-en.yml b/config/locales/js-en.ymlindex 1c01f1134a8..2b5b95fadc1 100644--- a/config/locales/js-en.yml+++ b/config/locales/js-en.yml@@ -445,6 +445,7 @@ en:label_total_amount: "Total: %{amount}"label_updated_on: "updated on"label_value_derived_from_children: "(value derived from children)"+ label_children_derived_duration: "Work package's children derived duration"label_warning: "Warning"label_work_package: "Work package"label_work_package_parent: "Parent work package"diff --git a/frontend/src/app/components/wp-table/timeline/cells/timeline-cell-renderer.ts b/frontend/src/app/components/wp-table/timeline/cells/timeline-cell-renderer.tsindex 4fb67dae973..32475fc92ab 100644--- a/frontend/src/app/components/wp-table/timeline/cells/timeline-cell-renderer.ts+++ b/frontend/src/app/components/wp-table/timeline/cells/timeline-cell-renderer.ts@@ -32,6 +32,7 @@ import {WorkPackageViewTimelineService} from "core-app/modules/work_packages/rouimport {WorkPackageChangeset} from "core-components/wp-edit/work-package-changeset";import {InjectField} from "core-app/helpers/angular/inject-field.decorator";import {SchemaCacheService} from "core-components/schemas/schema-cache.service";+import {I18nService} from "core-app/modules/common/i18n/i18n.service";export interface CellDateMovement {// Target values to move work package to@@ -47,6 +48,11 @@ export class TimelineCellRenderer {@InjectField() wpTableTimeline:WorkPackageViewTimelineService;@InjectField() TimezoneService:TimezoneService;@InjectField() schemaCache:SchemaCacheService;+ @InjectField() readonly I18n:I18nService;++ public text = {+ label_children_derived_duration: this.I18n.t('js.label_children_derived_duration')+ }public fieldRenderer:DisplayFieldRenderer = new DisplayFieldRenderer(this.injector, 'timeline');@@ -418,6 +424,7 @@ export class TimelineCellRenderer {const childrenDurationBar = document.createElement('div');childrenDurationBar.classList.add('children-duration-bar', '-clamp-style');+ childrenDurationBar.title = this.text.label_children_derived_duration;if (derivedStartDate.isBefore(startDate) || derivedDueDate.isAfter(dueDate)) {childrenDurationBar.classList.add('-duration-overflow');