aboutsummaryrefslogtreecommitdiff
path: root/client-web/source/resource/file.ts
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-04-27 20:22:56 +0200
committermetamuffin <metamuffin@disroot.org>2024-04-27 20:23:02 +0200
commit8b11f29a5e83a8bd6d9111e7b2d871eaab5536eb (patch)
tree3aaee4f66b05d05c01ca9044d656293a109ed8eb /client-web/source/resource/file.ts
parent959d2c9d7acea2cd7febcf1ab8ba5efd771c7713 (diff)
downloadkeks-meet-8b11f29a5e83a8bd6d9111e7b2d871eaab5536eb.tar
keks-meet-8b11f29a5e83a8bd6d9111e7b2d871eaab5536eb.tar.bz2
keks-meet-8b11f29a5e83a8bd6d9111e7b2d871eaab5536eb.tar.zst
prototype stream previews
Diffstat (limited to 'client-web/source/resource/file.ts')
-rw-r--r--client-web/source/resource/file.ts1
1 files changed, 1 insertions, 0 deletions
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,