From 09b96d03b69e9e873b7ce5d1a6d4de4e502c6f61 Mon Sep 17 00:00:00 2001
From: Remi  PLANEL <rplanel@pasteur.fr>
Date: Wed, 3 Apr 2024 15:19:06 +0200
Subject: [PATCH] display message if no matix dock

---
 components/content/pdockqMatrix.vue | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/components/content/pdockqMatrix.vue b/components/content/pdockqMatrix.vue
index eca377cb..4a2fadde 100644
--- a/components/content/pdockqMatrix.vue
+++ b/components/content/pdockqMatrix.vue
@@ -185,9 +185,8 @@ function displayStructure(item) {
 }
 </script>
 <template>
-
     <v-row class="d-flex align-content-start" :class="mobile ? 'd-flex-column' : 'd-flex-row'">
-        <v-card v-if="computedSystem !== null" v-for="option in computedPDocksMatrixPlotOptions"
+        <v-card v-if="computedSystem !== null && groupedPdocks?.length > 0" v-for="option in computedPDocksMatrixPlotOptions"
             :key="option.legend.label" flat color="transparent">
             <v-card-text>
                 <PlotFigure ref="matrixPlot" :options="unref(option)" defer class="pdockq-plot"
@@ -195,6 +194,8 @@ function displayStructure(item) {
             </v-card-text>
             <PdbeMolstarPlugin v-model="stuctureUrls" v-model:title="structureTitle" />
         </v-card>
-
+        <v-card v-else>
+            <v-alert type="info">No matrix available for this system</v-alert>
+        </v-card>
     </v-row>
 </template>
\ No newline at end of file
-- 
GitLab