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

Merge remote-tracking branch 'origin/release/11.4' into dev

ulferts74904dfb0d25
diff --cc frontend/src/app/features/work-packages/components/wp-table/timeline/global-elements/wp-timeline-static-elements.directive.ts
index aa38809c52f,1f9a6821c21..565e46cfd6a
--- a/frontend/src/app/features/work-packages/components/wp-table/timeline/global-elements/wp-timeline-static-elements.directive.ts
+++ b/frontend/src/app/features/work-packages/components/wp-table/timeline/global-elements/wp-timeline-static-elements.directive.ts
@@@ -23,33 -23,42 +23,40 @@@
// along with this program; if not, write to the Free Software
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
//
-// See docs/COPYRIGHT.rdoc for more details.
+// See COPYRIGHT and LICENSE files for more details.
//++
- import { Component, ElementRef, OnInit } from '@angular/core';
+ import {
+ Component,
+ ElementRef,
+ OnInit,
+ } from '@angular/core';
-import { States } from '../../../states.service';
+import { States } from 'core-app/core/states/states.service';
import { WorkPackageTimelineTableController } from '../container/wp-timeline-container.directive';
import { TimelineViewParameters } from '../wp-timeline';
- import { TimelineStaticElement, timelineStaticElementCssClassname } from './timeline-static-element';
+ import {
+ TimelineStaticElement,
+ timelineStaticElementCssClassname,
+ } from './timeline-static-element';
import { TodayLineElement } from './wp-timeline.today-line';
@Component({
selector: 'wp-timeline-static-elements',
- template: '<div class="wp-table-timeline--static-elements"></div>',
+ template: '<div class="wp-table-timeline--static-elements"></div>'
})
export class WorkPackageTableTimelineStaticElements implements OnInit {
- public $element:JQuery;
-
+ public $element:HTMLElement;
- private container:JQuery;
+ private container:HTMLElement;
private elements:TimelineStaticElement[];
constructor(elementRef:ElementRef,
- public states:States,
- public workPackageTimelineTableController:WorkPackageTimelineTableController) {
-
+ public states:States,
+ public workPackageTimelineTableController:WorkPackageTimelineTableController) {
- this.$element = jQuery(elementRef.nativeElement);
+ this.$element = elementRef.nativeElement;
this.elements = [
- new TodayLineElement()
+ new TodayLineElement(),
];
}
@@@ -65,7 -74,10 +72,10 @@@
}
private removeAllVisibleElements() {
- jQuery(`.${timelineStaticElementCssClassname}`).remove();
+ this
+ .container
- .querySelectorAll('.' + timelineStaticElementCssClassname)
++ .querySelectorAll(`.${timelineStaticElementCssClassname}`)
+ .forEach((el) => el.remove());
}
private renderElements(vp:TimelineViewParameters) {