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
use the new status class instead of a div
Klaus Zanderscad64f06d2ba
diff --git a/frontend/src/stimulus/controllers/dynamic/my/time-tracking.controller.ts b/frontend/src/stimulus/controllers/dynamic/my/time-tracking.controller.tsindex 0bf362785f7..5764aab86b9 100644--- a/frontend/src/stimulus/controllers/dynamic/my/time-tracking.controller.ts+++ b/frontend/src/stimulus/controllers/dynamic/my/time-tracking.controller.ts@@ -33,10 +33,13 @@ export default class MyTimeTrackingController extends Controller {height: 800,contentHeight: 780,aspectRatio: 3,- eventClassNames: [- 'calendar-time-entry-event',- 'calendar-time-entry-event_inline ',- ],+ eventClassNames(arg) {+ return [+ 'calendar-time-entry-event',+ `__hl_status_${arg.event.extendedProps.statusId}`,+ '__hl_border_top',+ ];+ },eventDidMount(info) {//eslint-disable-next-lineinfo.el.innerHTML = info.event.extendedProps.customEventView;diff --git a/modules/costs/app/components/time_tracking/time_entry_event_component.html.erb b/modules/costs/app/components/time_tracking/time_entry_event_component.html.erbindex 463dccf5257..4a9b905bed3 100644--- a/modules/costs/app/components/time_tracking/time_entry_event_component.html.erb+++ b/modules/costs/app/components/time_tracking/time_entry_event_component.html.erb@@ -1,5 +1,3 @@-<div class="calendar-time-entry-event--highlighting __hl_background_status_<%= time_entry.work_package.status_id %>"></div>-<div class="calendar-time-entry-event--content"><div class="calendar-time-entry-event-content-dates"><%= l(time_entry.spent_on) %>diff --git a/modules/costs/lib/full_calendar/time_entry_event.rb b/modules/costs/lib/full_calendar/time_entry_event.rbindex a65471f8dfd..13b465d82d0 100644--- a/modules/costs/lib/full_calendar/time_entry_event.rb+++ b/modules/costs/lib/full_calendar/time_entry_event.rb@@ -47,6 +47,12 @@ module FullCalendarendend+ def as_json(*)+ super.merge(+ statusId: time_entry.work_package.status_id+ )+ end+def event_content_view_componentTimeTracking::TimeEntryEventComponent.new(time_entry: time_entry)end