Skip to content
Snippets Groups Projects
Commit 1d8d2ebc authored by Remi  PLANEL's avatar Remi PLANEL
Browse files

add info model version

parent d2a1433d
Branches
No related tags found
No related merge requests found
Pipeline #129147 failed
...@@ -64,6 +64,19 @@ const computedGenes = computed(() => { ...@@ -64,6 +64,19 @@ const computedGenes = computed(() => {
} }
else { return [] } else { return [] }
}) })
const structureVersion = computed(() => {
const genesVal = toValue(computedGenes)
if (genesVal?.length > 0) {
return genesVal[0].version
}
else {
return undefined
}
})
watch(computedGenes, () => { watch(computedGenes, () => {
const genes = toValue(computedGenes) const genes = toValue(computedGenes)
const domain = genes?.map(d => { return d.gene }) const domain = genes?.map(d => { return d.gene })
...@@ -196,6 +209,7 @@ function drawGene({ width, height }) { ...@@ -196,6 +209,7 @@ function drawGene({ width, height }) {
<template> <template>
<div ref="gbContainer"> <div ref="gbContainer">
<v-card flat color="transparent"> <v-card flat color="transparent">
<v-card-subtitle>model version : {{ structureVersion }}</v-card-subtitle>
<!-- <v-img :href=""></v-img> --> <!-- <v-img :href=""></v-img> -->
<svg ref="svgRef" :width="computedContainerWidth" :height="plotHeight"> <svg ref="svgRef" :width="computedContainerWidth" :height="plotHeight">
<g class="x-axis" /> <g class="x-axis" />
......
...@@ -110,7 +110,7 @@ async function fetchStructures() { ...@@ -110,7 +110,7 @@ async function fetchStructures() {
<template> <template>
<v-card flat> <v-card flat>
<template v-for="[subsystem, structures] in perSubsystemStructures" :key="subsystem[0]"> <template v-for="[subsystem, structures] in perSubsystemStructures" :key="subsystem[0]">
<ProseH3>{{ computedSystem }} - {{ subsystem }}</ProseH3> <ProseH3>{{ subsystem }}</ProseH3>
<v-row align="end"> <v-row align="end">
<v-col cols="6" class="ml-0 "> <v-col cols="6" class="ml-0 ">
<SystemOperonStructure :system="computedSystem" :subsystem="subsystem" :structures="structures" /> <SystemOperonStructure :system="computedSystem" :subsystem="subsystem" :structures="structures" />
......
...@@ -2,6 +2,7 @@ export interface StructureOperonGene { ...@@ -2,6 +2,7 @@ export interface StructureOperonGene {
gene: string gene: string
id: number id: number
subsystem: string subsystem: string
version: string
system: string system: string
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment