From d276ce6996be42e992758d18a4c626295d494de3 Mon Sep 17 00:00:00 2001 From: sunguangming Date: Mon, 28 Apr 2025 05:28:11 +0000 Subject: [PATCH] * [misc] add download file link. --- lib/zin/wg/deliverable/js/v1.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/zin/wg/deliverable/js/v1.js b/lib/zin/wg/deliverable/js/v1.js index f48434fa84..d9364c4a16 100644 --- a/lib/zin/wg/deliverable/js/v1.js +++ b/lib/zin/wg/deliverable/js/v1.js @@ -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; }