Skip to content

Commit

Permalink
UPD info button
Browse files Browse the repository at this point in the history
  • Loading branch information
eboileau committed Sep 10, 2024
1 parent 4e11aa1 commit 5afc700
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
19 changes: 11 additions & 8 deletions client/src/views/BrowseView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -235,13 +235,6 @@ onMounted(() => {
/>
</template>
</Column>
<Column :exportable="false" field="dataset_id" style="width: 5%">
<template #body="{ data }">
<a :href="getApiUrl(`transfer/dataset/${data.dataset_id}`)">
<Button text severity="secondary" label="Download" />
</a>
</template>
</Column>

<!-- export columns shown in dialog -->
<Column field="sequencing_platform" header="Platform" style="display: none"></Column>
Expand All @@ -257,16 +250,26 @@ onMounted(() => {
<Column field="pmid" header="PMID" style="display: none"></Column>

<Column :exportable="false" style="width: 5%">
<template #header>
<span v-tooltip.top="'Click for dataset information'">Info</span>
</template>
<template #body="slotProps">
<Button
icon="pi pi-plus"
icon="pi pi-info"
outlined
rounded
severity="secondary"
@click="onOverlay(slotProps.data)"
/>
</template>
</Column>
<Column :exportable="false" field="dataset_id" style="width: 5%">
<template #body="{ data }">
<a :href="getApiUrl(`transfer/dataset/${data.dataset_id}`)">
<Button text severity="secondary" label="Download" />
</a>
</template>
</Column>
</DataTable>
</div>

Expand Down
5 changes: 4 additions & 1 deletion client/src/views/SearchView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -518,9 +518,12 @@ onMounted(() => {
<Column field="gene_name" header="Gene" exportHeader="Gene"></Column>
<Column field="gene_biotype" header="Biotype" exportHeader="Biotype"></Column>
<Column :exportable="false" style="width: 5%">
<template #header>
<span v-tooltip.top="'Click for site information'">Info</span>
</template>
<template #body="slotProps">
<Button
icon="pi pi-plus"
icon="pi pi-info"
outlined
rounded
severity="secondary"
Expand Down

0 comments on commit 5afc700

Please sign in to comment.