From b29dfb552f776fc278ac5d5d43be1843d48cf874 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johan=20A=CC=8Ahle=CC=81n?= Date: Mon, 5 Aug 2024 10:51:06 +0200 Subject: [PATCH 1/2] [core] Add the document copy action to the right click context menu in the documents page This adds the "copy" action to the context menu for documents listed in the documents page. Before this change it was only available in the upper right actions menu. --- desktop/core/src/desktop/templates/document_browser.mako | 3 +++ 1 file changed, 3 insertions(+) diff --git a/desktop/core/src/desktop/templates/document_browser.mako b/desktop/core/src/desktop/templates/document_browser.mako index c09c0aeca1a..b640acfac57 100644 --- a/desktop/core/src/desktop/templates/document_browser.mako +++ b/desktop/core/src/desktop/templates/document_browser.mako @@ -297,6 +297,9 @@ else:
  • ${ _('Rename') }
  • ${ _('Open') }
  • +
  • + ${_('Copy')} +
  • ${ _('Download') }
  • ${ _('Move to trash') } From 3a58a7d7fc796ae008c249d81921d95294a317a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johan=20A=CC=8Ahle=CC=81n?= Date: Mon, 5 Aug 2024 10:51:45 +0200 Subject: [PATCH 2/2] [core] Add the document copy action to the right click context menu in the left assist panel This adds the "copy" action to the context menu for documents listed in the left assist panel. --- .../js/ko/components/assist/ko.assistDocumentsPanel.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/desktop/core/src/desktop/js/ko/components/assist/ko.assistDocumentsPanel.js b/desktop/core/src/desktop/js/ko/components/assist/ko.assistDocumentsPanel.js index 5bcf4914a74..c30840aaa34 100644 --- a/desktop/core/src/desktop/js/ko/components/assist/ko.assistDocumentsPanel.js +++ b/desktop/core/src/desktop/js/ko/components/assist/ko.assistDocumentsPanel.js @@ -42,10 +42,13 @@ const TEMPLATE = ` 'Show details' )}
  • ${I18n( - 'Open document' + 'Open' + )}
  • +
  • ${I18n( + 'Copy' )}
  • ${I18n( - 'Delete document' + 'Delete' )}