Bladeren bron

minor refactoring

bioinsilico 3 jaren geleden
bovenliggende
commit
e37021a221

+ 1 - 2
src/RcsbFvConstants/RcsbFvConstants.ts

@@ -1,6 +1,5 @@
 export enum RcsbFvDOMConstants {
-    SELECT_ASSEMBLY_PFV_ID = "selectAssemblyPfv",
-    SELECT_INSTANCE_PFV_ID = "selectInstancePfv",
+    SELECT_BUTTON_PFV_ID = "selectButtonPfv",
     PFV_APP_ID = "pfvApp",
     PFV_DIV = "pfvDiv",
     MOLSTAR_DIV= "molstarDiv",

+ 2 - 2
src/RcsbFvSequence/SequenceViews/RcsbView/PfvFactoryImplementation/AssemblyPfvFactory.tsx

@@ -91,7 +91,7 @@ export class AssemblyPfvFactory extends PfvAbstractFactory<{instanceSequenceConf
         if(this.assemblyModelSate.get("entryId") != null) {
             module = await buildInstanceSequenceFv(
                 this.rcsbFvDivId,
-                RcsbFvDOMConstants.SELECT_INSTANCE_PFV_ID,
+                RcsbFvDOMConstants.SELECT_BUTTON_PFV_ID,
                 this.assemblyModelSate.getString("entryId"),
                 {
                     ...this.instanceSequenceConfig,
@@ -142,7 +142,7 @@ export class AssemblyPfvFactory extends PfvAbstractFactory<{instanceSequenceConf
             this.assemblyModelSate.setOperator(undefined,operatorName);
             RcsbFvUI.addSelectButton(
                 this.rcsbFvDivId,
-                RcsbFvDOMConstants.SELECT_INSTANCE_PFV_ID,
+                RcsbFvDOMConstants.SELECT_BUTTON_PFV_ID,
                 currentChainInfo.operators.map(op=>({
                     label:`${op.ids.join("-")} (${op.name})`,
                     optId:op.name,

+ 1 - 1
src/RcsbFvSequence/SequenceViews/RcsbView/RcsbView.tsx

@@ -58,7 +58,7 @@ export class RcsbView<T extends {}> extends AbstractView<RcsbViewInterface<T> &
         return (
             <div style={{marginTop:10}}>
                 <div>
-                    <div id={RcsbFvDOMConstants.SELECT_INSTANCE_PFV_ID} style={{display:"inline-block"}}/>
+                    <div id={RcsbFvDOMConstants.SELECT_BUTTON_PFV_ID} style={{display:"inline-block"}}/>
                     <div style={{display:"inline-block", marginLeft:25}}>
                         <a href={"/docs/sequence-viewers/protein-feature-view"} target={"_blank"}>Help</a>
                     </div>