[ui] show any .stls as models

feat/vaults
Tomáš Mládek 2022-02-10 15:58:53 +01:00
parent 7427ed2216
commit e384bfbfaf
No known key found for this signature in database
GPG Key ID: 65E225C8B3E2ED8A
1 changed files with 3 additions and 1 deletions

View File

@ -19,7 +19,9 @@
$: image = mimeType.startsWith("image");
$: text = mimeType.startsWith("text");
$: pdf = mimeType.startsWith("application/pdf");
$: model = mimeType?.startsWith("model");
$: model =
mimeType?.startsWith("model") ||
$entity?.identify().some((l) => l.endsWith(".stl"));
$: web = $entityInfo?.t == "Url";
$: handled = audio || video || image || text || pdf || model || web;