Add file download link in files page
This commit is contained in:
1 parent
e9a4676f5c
commit
540898de21
3 files changed
+38
No files matched your search
@@ -212,6 +212,9 @@ export const component: ClosureComponent = (): Component => {
|
||||
attrs["sortAttributes"] = sortAttributes;
|
||||
attrs["onSortChange"] = onSortChange;
|
||||
attrs["downloadUrl"] = downloadUrl;
|
||||
attrs["recordActionsCallback"] = (file) => {
|
||||
return [m("a", { href: "api/blob/files/" + file["_id"] }, "Download")];
|
||||
};
|
||||
|
||||
if (window.authorizer.hasAccess("files", 3)) {
|
||||
attrs["actionsCallback"] = (selected: Set<string>): Children => {
|
||||
|
||||
Reference in new issue
Block a user