diff --git a/config/locales/js-en.yml b/config/locales/js-en.yml index f59d99a12d48..58a53dcad290 100644 --- a/config/locales/js-en.yml +++ b/config/locales/js-en.yml @@ -91,6 +91,7 @@ en: button_copy: "Copy" button_copy_numeric_id_to_clipboard: "Copy numeric ID to clipboard" button_copy_link_to_clipboard: "Copy link to clipboard" + button_copy_display_id_to_clipboard: "Copy ID to clipboard" button_copy_to_clipboard: "Copy to clipboard" button_copy_to_other_project: "Duplicate in another project" button_custom-fields: "Custom fields" diff --git a/frontend/src/app/shared/components/op-context-menu/op-context-menu.html b/frontend/src/app/shared/components/op-context-menu/op-context-menu.html index 1a0ee37a4afb..012f9456f95b 100644 --- a/frontend/src/app/shared/components/op-context-menu/op-context-menu.html +++ b/frontend/src/app/shared/components/op-context-menu/op-context-menu.html @@ -19,7 +19,7 @@ @if (item.divider) { } - @if (!item.divider && !item.isHeader) { + @if (!item.divider && !item.isHeader && !item.hidden) {
  • @if (item.href) { ({ class: undefined as string | undefined, disabled: false, + hidden: action.key === 'copy_numeric_id_to_clipboard' && !isSemanticWorkPackageId(this.workPackage.displayId), linkText: action.text, href: action.href, icon: action.icon != null ? action.icon : `icon-${action.key}`,