From 7ec19a01e92cc5c0323c622822e17ab046c5aee0 Mon Sep 17 00:00:00 2001 From: Remi PLANEL <rplanel@pasteur.fr> Date: Thu, 1 Feb 2024 22:42:21 +0100 Subject: [PATCH] hide pae if pdb --- components/content/MolstarPdbePlugin.vue | 2 +- components/content/RefseqDb.vue | 14 +++++++++----- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/components/content/MolstarPdbePlugin.vue b/components/content/MolstarPdbePlugin.vue index f079a137..8b80afbb 100644 --- a/components/content/MolstarPdbePlugin.vue +++ b/components/content/MolstarPdbePlugin.vue @@ -210,7 +210,7 @@ const moleculeFormat: Ref<string> = ref("pdb") sequence-panel="true" landscape="false" :custom-data-format="moleculeFormat"></pdbe-molstar> </v-sheet> </v-col> - <v-col :cols="mobile ? 12 : undefined"> + <v-col v-if="moleculeFormat === 'cif'" :cols="mobile ? 12 : undefined"> <v-img :src="selectedPaePath"></v-img> <!-- <PlotFigure v-if="sanitizedPaeData?.length > 0 && paeError === null" defer diff --git a/components/content/RefseqDb.vue b/components/content/RefseqDb.vue index 4056d43c..b4ed606d 100644 --- a/components/content/RefseqDb.vue +++ b/components/content/RefseqDb.vue @@ -107,11 +107,13 @@ const scaleTypes = ref<string[]>(['linear', 'sqrt', 'log', 'symlog']) const selectedTaxoRank = ref("Superkingdom"); const headers = ref([ - { title: "Replicon", key: "replicon" }, { title: "System", key: "type", + fixed: true }, + { title: "Replicon", key: "replicon" }, + { title: "Subsystem", key: "subtype", @@ -474,14 +476,16 @@ async function downloadPng(component: ComponentPublicInstance | null, filename: </CollapsibleChips> </template> <template #[`item.type`]="{ item }"> - <v-chip color="info" link size="small" :to="`/defense-systems/${item.type.toLowerCase()}`" target="_blank"> {{ - item.type }} + <v-chip color="info" link size="small" :to="`/defense-systems/${item.type.toLowerCase()}`" + target="_blank"> {{ + item.type }} </v-chip> </template> <template #[`item.subtype`]="{ item }"> - <v-chip color="info" link size="small" :to="`/defense-systems/${item.type.toLowerCase()}`" target="_blank"> {{ - item.subtype }} + <v-chip color="info" link size="small" :to="`/defense-systems/${item.type.toLowerCase()}`" + target="_blank"> {{ + item.subtype }} </v-chip> </template> </ServerDbTable> -- GitLab