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

Re-bootstrap the edit/delete icon in the cost reports table when the table is refreshed

Henriette Dargeb7c39c16bb49
diff --git a/frontend/src/app/global-dynamic-components.const.ts b/frontend/src/app/global-dynamic-components.const.ts
index 6299bb4c01c..ebdfee7d036 100644
--- a/frontend/src/app/global-dynamic-components.const.ts
+++ b/frontend/src/app/global-dynamic-components.const.ts
@@ -174,7 +174,7 @@ export const globalDynamicComponents:OptionalBootstrapDefinition[] = [
{ selector: remoteFieldUpdaterSelector, cls: RemoteFieldUpdaterComponent },
{ selector: wpOverviewGraphSelector, cls: WorkPackageOverviewGraphComponent },
{ selector: wpQuerySelectSelector, cls: WorkPackageQuerySelectDropdownComponent },
- { selector: triggerActionsEntryComponentSelector, cls: TriggerActionsEntryComponent },
+ { selector: triggerActionsEntryComponentSelector, cls: TriggerActionsEntryComponent, embeddable: true },
];
diff --git a/modules/reporting_engine/lib/assets/javascripts/reporting_engine/reporting/controls.js b/modules/reporting_engine/lib/assets/javascripts/reporting_engine/reporting/controls.js
index 38aba3c0206..44cd9013845 100644
--- a/modules/reporting_engine/lib/assets/javascripts/reporting_engine/reporting/controls.js
+++ b/modules/reporting_engine/lib/assets/javascripts/reporting_engine/reporting/controls.js
@@ -112,6 +112,12 @@ Reporting.Controls = function($){
var update_result_table = function (response) {
$('#result-table').html(response);
+
+ window.OpenProject.pluginContext
+ .valuesPromise()
+ .then((context) => {
+ context.bootstrap(document.getElementById('result-table'));
+ });
};
var default_failure_callback = function (response) {