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

Use basic single date picker for wp bulk edit

Benjamin Bädorf786f0e37a5bb
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index 6632c3e848e..51d3af456b7 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -381,7 +381,7 @@ module ApplicationHelper
end
def calendar_for(*_args)
- ActiveSupport::Deprecation.warn "calendar_for has been removed. Please use the op-single-date-picker angular component instead", caller
+ ActiveSupport::Deprecation.warn "calendar_for has been removed. Please use the op-basic-single-date-picker angular component instead", caller
end
def locale_first_day_of_week
diff --git a/app/views/work_packages/bulk/edit.html.erb b/app/views/work_packages/bulk/edit.html.erb
index da421af75b0..373f4c3ab6a 100644
--- a/app/views/work_packages/bulk/edit.html.erb
+++ b/app/views/work_packages/bulk/edit.html.erb
@@ -151,7 +151,7 @@ See COPYRIGHT and LICENSE files for more details.
<div class="form--field">
<%= styled_label_tag :work_package_start_date, WorkPackage.human_attribute_name(:start_date) %>
<div class="form--field-container -visible-overflow">
- <%= angular_component_tag 'op-single-date-picker',
+ <%= angular_component_tag 'op-basic-single-date-picker',
inputs: {
id: "work_package_start_date",
name: "work_package[start_date]"
@@ -162,7 +162,7 @@ See COPYRIGHT and LICENSE files for more details.
<div class="form--field">
<%= styled_label_tag :work_package_due_date, WorkPackage.human_attribute_name(:due_date) %>
<div class="form--field-container -visible-overflow">
- <%= angular_component_tag 'op-single-date-picker',
+ <%= angular_component_tag 'op-basic-single-date-picker',
inputs: {
id: "work_package_due_date",
name: "work_package[due_date]"
diff --git a/frontend/src/app/core/setup/global-dynamic-components.const.ts b/frontend/src/app/core/setup/global-dynamic-components.const.ts
index e55b716ff4d..2ded15c2f1e 100644
--- a/frontend/src/app/core/setup/global-dynamic-components.const.ts
+++ b/frontend/src/app/core/setup/global-dynamic-components.const.ts
@@ -276,16 +276,19 @@ export const globalDynamicComponents:OptionalBootstrapDefinition[] = [
{ selector: attributeLabelMacro, cls: AttributeLabelMacroComponent, embeddable: true },
{ selector: quickInfoMacroSelector, cls: WorkPackageQuickinfoMacroComponent, embeddable: true },
{ selector: editableQueryPropsSelector, cls: EditableQueryPropsComponent },
- { selector: spotSwitchSelector, cls: SpotSwitchComponent },
{ selector: backupSelector, cls: BackupComponent },
{ selector: opInAppNotificationBellSelector, cls: InAppNotificationBellComponent },
{ selector: ianMenuSelector, cls: IanMenuComponent },
+
{ selector: opModalOverlaySelector, cls: OpModalOverlayComponent },
- // It is important to initialize the remoteFieldUpdaterSelector after the opModalSingleDatePickerSelector,
- // because we need to access the input field of the opModalSingleDatePickerSelector inside the remoteFieldUpdaterSelector
+ { selector: spotDropModalPortalComponentSelector, cls: SpotDropModalPortalComponent },
+ { selector: spotSwitchSelector, cls: SpotSwitchComponent },
+
{ selector: opSingleDatePickerSelector, cls: OpSingleDatePickerComponent, embeddable: true },
{ selector: opModalSingleDatePickerSelector, cls: OpModalSingleDatePickerComponent, embeddable: true },
{ selector: opBasicSingleDatePickerSelector, cls: OpBasicSingleDatePickerComponent, embeddable: true },
+
+ // It is important to initialize the remoteFieldUpdaterSelector after the datepickers,
+ // because we need to access the input field of the datepickers inside the remoteFieldUpdaterSelector
{ selector: remoteFieldUpdaterSelector, cls: RemoteFieldUpdaterComponent },
- { selector: spotDropModalPortalComponentSelector, cls: SpotDropModalPortalComponent },
];