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

Make "copy to clipboard" the first context menu item in WP show page

Aaron Contreras98b3be441aab
diff --git a/frontend/src/app/shared/components/op-context-menu/wp-context-menu/wp-static-context-menu-actions.ts b/frontend/src/app/shared/components/op-context-menu/wp-context-menu/wp-static-context-menu-actions.ts
index 39ec6c6fb9a..f4a140ed3c8 100644
--- a/frontend/src/app/shared/components/op-context-menu/wp-context-menu/wp-static-context-menu-actions.ts
+++ b/frontend/src/app/shared/components/op-context-menu/wp-context-menu/wp-static-context-menu-actions.ts
@@ -1,6 +1,11 @@
import { WorkPackageAction } from 'core-app/features/work-packages/components/wp-table/context-menu-helper/wp-context-menu-helper.service';
export const PERMITTED_CONTEXT_MENU_ACTIONS:WorkPackageAction[] = [
+ {
+ key: 'copy_link_to_clipboard',
+ icon: 'icon-clipboard',
+ link: 'id',
+ },
{
key: 'log_time',
link: 'logTime',
@@ -14,11 +19,6 @@ export const PERMITTED_CONTEXT_MENU_ACTIONS:WorkPackageAction[] = [
key: 'copy',
link: 'copy',
},
- {
- key: 'copy_link_to_clipboard',
- icon: 'icon-clipboard',
- link: 'id',
- },
{
key: 'copy_to_other_project',
link: 'copy',