* [misc] add download file link.
This commit is contained in:
@@ -7,6 +7,7 @@ window.getDeliverableFileActions = function(file, deliverable)
|
||||
let actions = [];
|
||||
actions[0] = {icon: 'edit', key: 'rename'};
|
||||
actions[1] = {icon: 'trash', key: 'delete'};
|
||||
if(canDownload) actions[2] = {icon: 'download', key: 'download', url: $.createLink('file', 'download', 'id=' + file.id), target: '_blank'};
|
||||
return actions;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user