From 8b11f29a5e83a8bd6d9111e7b2d871eaab5536eb Mon Sep 17 00:00:00 2001 From: metamuffin Date: Sat, 27 Apr 2024 20:22:56 +0200 Subject: prototype stream previews --- client-web/source/resource/file.ts | 1 + 1 file changed, 1 insertion(+) (limited to 'client-web/source/resource/file.ts') diff --git a/client-web/source/resource/file.ts b/client-web/source/resource/file.ts index 0554e2f..7b63d84 100644 --- a/client-web/source/resource/file.ts +++ b/client-web/source/resource/file.ts @@ -26,6 +26,7 @@ export const resource_file: ResourceHandlerDecl = { }, PO.download) return { info, + on_preview(_) { }, el: e("div", {}, e("span", {}, `${PO.file}: ${JSON.stringify(info.label)} (${display_filesize(info.size!)})`), download_button, -- cgit v1.2.3-70-g09d2