Skip to content

Commit

Permalink
Corrected conditions to hide/show VCF based on permission and plugin …
Browse files Browse the repository at this point in the history
…availability (#3946)

Co-authored-by: Ramin Haeri Azad <[email protected]>
  • Loading branch information
kazoompa and Ramin Haeri Azad authored Oct 17, 2024
1 parent 73eb595 commit 1cb13c9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions opal-ui/src/components/ProjectDrawer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
</q-item-section>
</q-item>

<q-item v-show="hasVcfStorePermission" :to="`/project/${projectsStore.project.name}/genotypes`">
<q-item v-show="hasVcfPlugins && hasVcfStorePermission" :to="`/project/${projectsStore.project.name}/genotypes`">
<q-item-section avatar>
<q-icon name="science" />
</q-item-section>
Expand Down Expand Up @@ -103,7 +103,7 @@ watchEffect(() => {
false;
hasVcfStorePermission.value =
hasVcfPlugins && projectsStore.perms.vcfstore?.canRead() && !!projectsStore.project.vcfStoreService ? true : false;
projectsStore.perms.vcfstore?.canRead() && !!projectsStore.project.vcfStoreService ? true : false;
});
onMounted(() => {
Expand Down
1 change: 1 addition & 0 deletions opal-ui/src/components/project/AddProjectDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
map-options
/>
<q-select
v-if="hasVcfStores"
v-model="newProject.vcfStoreService"
:options="vcfStores"
dense
Expand Down

0 comments on commit 1cb13c9

Please sign in to comment.