diff --git a/components/content/MolstarPdbePlugin.vue b/components/content/MolstarPdbePlugin.vue index c631022c544b66700021abe3ed0f07ebeecd0c31..aee98a376c7999c7d4b1bb8fbe1d0ba6cd704f27 100644 --- a/components/content/MolstarPdbePlugin.vue +++ b/components/content/MolstarPdbePlugin.vue @@ -218,7 +218,7 @@ const moleculeFormat: Ref<string> = ref("pdb") <v-col> <PlotFigure v-if="sanitizedPaeData?.length > 0 && paeError === null" defer :options="plotPaeOptions"></PlotFigure> - <v-alert v-else type="warning">{{ paeError }}</v-alert> + <v-alert v-else type="warning" variant="tonal">{{ paeError }}</v-alert> <v-card flat color="transparent"> <v-card-title>Model Confidence</v-card-title> diff --git a/components/content/StructureDb.vue b/components/content/StructureDb.vue index 4ec3d385a56b5e24395748036eacc6ffa8fd609c..065e36e6bed1e791d3c58062c80ce5284165a39f 100644 --- a/components/content/StructureDb.vue +++ b/components/content/StructureDb.vue @@ -67,8 +67,9 @@ function toSystemName(rawName: string) { <td :colspan="columns.length"> <v-card flat color="transparent"> <v-card-text> - <MolstarPdbePlugin :data-urls="[`/${toSystemName(item.system)}/${pdbNameToCif(item.pdb)}`]"> + <MolstarPdbePlugin v-if="item?.pdb && item.pdb !== 'na'" :data-urls="[`/${toSystemName(item.system)}/${pdbNameToCif(item.pdb)}`]"> </MolstarPdbePlugin> + <v-alert v-else variant="tonal" type="warning">No structure file</v-alert> </v-card-text> </v-card> </td>