Forráskód Böngészése

logic to render Quality Assessment panel

Sebastian Bittrich 3 éve
szülő
commit
1d9ae20beb
1 módosított fájl, 4 hozzáadás és 2 törlés
  1. 4 2
      src/viewer/ui/validation.tsx

+ 4 - 2
src/viewer/ui/validation.tsx

@@ -63,8 +63,10 @@ export class ValidationReportControls extends CollapsableControls<{}, Validation
         const { selection } = this.plugin.managers.structure.hierarchy;
         if (selection.structures.length !== 1) return false;
         const pivot = this.pivot.cell;
-        if (!pivot.obj) return false;
-        return pivot.obj.data.models.length === 1 && ValidationReport.isApplicable(pivot.obj.data.models[0]);
+        if (!pivot.obj || pivot.obj.data.models.length !== 1) return false;
+        const model = pivot.obj.data.models[0];
+        // all supported options must be registered here
+        return ValidationReport.isApplicable(model) || AlphaFoldConfidence.isApplicable(model);
     }
 
     get noValidationReport() {