From af09af65fdfa10629214d58ffa351600854d4aca Mon Sep 17 00:00:00 2001 From: Aaron Kanzer Date: Wed, 30 Oct 2024 11:33:48 -0400 Subject: [PATCH] include asset service interface appropriately --- web/src/views/FileBrowserView/FileBrowser.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/web/src/views/FileBrowserView/FileBrowser.vue b/web/src/views/FileBrowserView/FileBrowser.vue index 62ab51bc3..195927e3b 100644 --- a/web/src/views/FileBrowserView/FileBrowser.vue +++ b/web/src/views/FileBrowserView/FileBrowser.vue @@ -289,6 +289,7 @@ const FILES_PER_PAGE = 15; interface AssetService { name: string, url: string, + isPublicNeuroglancer: boolean, } interface ExtendedAssetPath extends AssetPath { @@ -445,7 +446,7 @@ function getExternalServices(path: AssetPath, info: {dandisetId: string, dandise // used, but we're forced to supply the internal DANDI URL for embargoed // dandisets (since the ready-made S3 URL will prevent access in that case). const assetUrl = embargoed.value ? assetDandiUrl : assetS3Url; - + return EXTERNAL_SERVICES .filter((service) => servicePredicate(service, path)) .map((service) => ({ @@ -569,7 +570,8 @@ function redirectNeuroglancerUrl(item: any) { layers: [ { type: "new", - source: assetS3Url.includes("zarr") ? `zarr://${assetS3Url}` : `nifti://${assetS3Url}`, + source: assetS3Url.includes("zarr") ? `zarr://${assetS3Url}` + : `nifti://${assetS3Url}`, tab: "source", name: item.asset.asset_id }