diff --git a/app/app/templates/components/document/sidebar-view-attachments.hbs b/app/app/templates/components/document/sidebar-view-attachments.hbs index f28224aa..b3e1e2c2 100644 --- a/app/app/templates/components/document/sidebar-view-attachments.hbs +++ b/app/app/templates/components/document/sidebar-view-attachments.hbs @@ -1,9 +1,11 @@
Are you sure you want to delete this document?
-There is no undo, so be careful.
- {{/dropdown-dialog}} +{{#if session.authenticated}} + {{#if isEditor}} + {{#if menuOpen}} + {{#dropdown-dialog target="delete-document-button" position="bottom right" button="Delete" color="flat-red" onAction=(action 'onDeleteDocument')}} +Are you sure you want to delete this document?
+There is no undo, so be careful.
+ {{/dropdown-dialog}} - {{#unless pinState.isPinned}} - {{#dropdown-dialog target="pin-document-button" position="bottom right" button="Pin" color="flat-green" onAction=(action 'onPin') focusOn="pin-document-name" }} -