Skip to content

Commit

Permalink
[core] Add the document copy action to the right click context menu i…
Browse files Browse the repository at this point in the history
…n the left assist panel

This adds the "copy" action to the context menu for documents listed in the left assist panel.
  • Loading branch information
JohanAhlen committed Aug 6, 2024
1 parent 3496749 commit d742b42
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,13 @@ const TEMPLATE = `
'Show details'
)}</a></li>
<li><a href="javascript: void(0);" data-bind="click: open"><i class="fa fa-fw fa-edit"></i> ${I18n(
'Open document'
'Open'
)}</a></li>
<li><a href="javascript: void(0);" data-bind="click: function() { $data.selected(true); $data.parent.copy() }"><i class="fa fa-fw fa-files-o"></i> ${I18n(
'Copy'
)}</a></li>
<li><a href="javascript: void(0);" data-bind="click: function() { $data.selected(true); huePubSub.publish('doc.show.delete.modal', $data.parent); }"><i class="fa fa-fw fa-trash-o"></i> ${I18n(
'Delete document'
'Delete'
)}</a></li>
<!-- /ko -->
<!-- ko if: $containerContext.sharingEnabled -->
Expand Down

0 comments on commit d742b42

Please sign in to comment.