Skip to content
This repository has been archived by the owner on Jan 14, 2022. It is now read-only.

[wip] adding nwb viewer #849

Closed
wants to merge 9 commits into from
18 changes: 18 additions & 0 deletions src/views/FileBrowserView/PublishFileBrowser.vue
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,19 @@
</v-btn>
</v-list-item-action>

<v-list-item-action v-if="item.asset_id">
<v-btn
icon
:href="viewURI(item.asset_id)"
target="_blank"
rel="noopener"
>
<v-icon color="primary">
mdi-file-eye
</v-icon>
</v-btn>
</v-list-item-action>

<v-list-item-action
v-if="item.size"
class="justify-end"
Expand Down Expand Up @@ -278,6 +291,11 @@ export default {
return publishRest.assetDownloadURI(this.identifier, this.version, asset_id);
},

viewURI(asset_id) {
return "https://bioimagesuiteweb.github.io/webapp/overlayviewer.html?image=" + publishRest.assetDownloadURI(this.identifier, this.version, asset_id);
},


djarecka marked this conversation as resolved.
Show resolved Hide resolved
assetMetadataURI(asset_id) {
return publishRest.assetMetadataURI(this.identifier, this.version, asset_id);
},
Expand Down