* [misc] add download file link.

This commit is contained in:
sunguangming
2025-04-28 13:54:37 +08:00
committed by 刘刚
parent 586d4dcce0
commit d276ce6996
+1
View File
@@ -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;
}