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

Move event listener to trigger also when empty

Oliver Günther9e415dfbdd1c
diff --git a/frontend/src/app/features/work-packages/components/wp-fast-table/builders/share-cell-builder.ts b/frontend/src/app/features/work-packages/components/wp-fast-table/builders/share-cell-builder.ts
index bf540988693..3d4634168ed 100644
--- a/frontend/src/app/features/work-packages/components/wp-fast-table/builders/share-cell-builder.ts
+++ b/frontend/src/app/features/work-packages/components/wp-fast-table/builders/share-cell-builder.ts
@@ -45,8 +45,8 @@ export class ShareCellbuilder {
);
td.setAttribute('title', this.I18n.t('js.work_packages.sharing.show_all_users'));
- td.addEventListener('click', this.showShareModal.bind(this, workPackage));
}
+ td.addEventListener('click', this.showShareModal.bind(this, workPackage));
return td;
}