Skip to content

Commit

Permalink
Merge pull request #1845 from dandi/filebrowser-title
Browse files Browse the repository at this point in the history
Add tooltips to describe FileBrowserView action icons
  • Loading branch information
waxlamp authored Feb 7, 2024
2 parents cb5731f + b432a2f commit 84701db
Showing 1 changed file with 51 additions and 28 deletions.
79 changes: 51 additions & 28 deletions web/src/views/FileBrowserView/FileBrowser.vue
Original file line number Diff line number Diff line change
Expand Up @@ -145,39 +145,61 @@
</v-list-item-action>

<v-list-item-action v-if="item.asset">
<v-btn
icon
:href="inlineURI(item.asset.asset_id)"
target="_blank"
>
<v-icon color="primary">
mdi-eye
</v-icon>
</v-btn>
<v-tooltip top>
<template v-slot:activator="{ on, attrs }">
<v-btn
icon
:href="inlineURI(item.asset.asset_id)"
target="_blank"
rel="noreferrer"
v-bind="attrs"
v-on="on"
>
<v-icon color="primary">
mdi-eye
</v-icon>
</v-btn>
</template>
<span>View asset in browser</span>
</v-tooltip>
</v-list-item-action>

<v-list-item-action v-if="item.asset">
<v-btn
icon
:href="downloadURI(item.asset.asset_id)"
>
<v-icon color="primary">
mdi-download
</v-icon>
</v-btn>
<v-tooltip top>
<template v-slot:activator="{ on, attrs }">
<v-btn
icon
:href="downloadURI(item.asset.asset_id)"
v-bind="attrs"
v-on="on"
>
<v-icon color="primary">
mdi-download
</v-icon>
</v-btn>
</template>
<span>Download asset</span>
</v-tooltip>
</v-list-item-action>

<v-list-item-action v-if="item.asset">
<v-btn
icon
:href="assetMetadataURI(item.asset.asset_id)"
target="_blank"
rel="noopener"
>
<v-icon color="primary">
mdi-information
</v-icon>
</v-btn>
<v-tooltip top>
<template v-slot:activator="{ on, attrs }">
<v-btn
icon
:href="assetMetadataURI(item.asset.asset_id)"
target="_blank"
rel="noreferrer"
v-bind="attrs"
v-on="on"
>
<v-icon color="primary">
mdi-information
</v-icon>
</v-btn>
</template>
<span>View asset metadata</span>
</v-tooltip>
</v-list-item-action>

<v-list-item-action v-if="item.asset">
Expand All @@ -190,6 +212,7 @@
v-if="item.services && item.services.length"
color="primary"
icon
title="Open in external service"
v-bind="attrs"
v-on="on"
>
Expand Down Expand Up @@ -220,7 +243,7 @@
:key="el.name"
:href="el.url"
target="_blank"
rel="noopener"
rel="noreferrer"
>
<v-list-item-title class="font-weight-light">
{{ el.name }}
Expand Down

0 comments on commit 84701db

Please sign in to comment.