Skip to content

Commit

Permalink
include asset service interface appropriately
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron Kanzer authored and Aaron Kanzer committed Oct 30, 2024
1 parent 4054676 commit af09af6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions web/src/views/FileBrowserView/FileBrowser.vue
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,7 @@ const FILES_PER_PAGE = 15;
interface AssetService {
name: string,
url: string,
isPublicNeuroglancer: boolean,
}
interface ExtendedAssetPath extends AssetPath {
Expand Down Expand Up @@ -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) => ({
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit af09af6

Please sign in to comment.