From f48dc9d21c5bf02df112d149adf8f3384d96b702 Mon Sep 17 00:00:00 2001 From: Boris Kovar Date: Mon, 13 Nov 2023 16:13:26 +0100 Subject: [PATCH] - L, P, C, S, V buttons work now --- .../molecule/observationCmpView/observationCmpView.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/js/components/preview/molecule/observationCmpView/observationCmpView.js b/js/components/preview/molecule/observationCmpView/observationCmpView.js index 4238d4655..679a330c0 100644 --- a/js/components/preview/molecule/observationCmpView/observationCmpView.js +++ b/js/components/preview/molecule/observationCmpView/observationCmpView.js @@ -767,6 +767,7 @@ const ObservationCmpView = memo( const [loadingAll, setLoadingAll] = useState(false); const [loadingLigand, setLoadingLigand] = useState(false); + const onLigand = calledFromSelectAll => { setLoadingLigand(true); if (calledFromSelectAll === true && selectedAll.current === true) { @@ -809,6 +810,7 @@ const ObservationCmpView = memo( }; const [loadingProtein, setLoadingProtein] = useState(false); + const onProtein = calledFromSelectAll => { setLoadingProtein(true); if (calledFromSelectAll === true && selectedAll.current === true) { @@ -848,6 +850,7 @@ const ObservationCmpView = memo( }; const [loadingComplex, setLoadingComplex] = useState(false); + const onComplex = calledFromSelectAll => { setLoadingComplex(true); if (calledFromSelectAll === true && selectedAll.current === true) { @@ -886,6 +889,7 @@ const ObservationCmpView = memo( }; const [loadingSurface, setLoadingSurface] = useState(false); + const onSurface = () => { setLoadingSurface(true); if (isSurfaceOn === false) { @@ -921,6 +925,7 @@ const ObservationCmpView = memo( }; const [loadingDensity, setLoadingDensity] = useState(false); + const onDensity = () => { setLoadingDensity(true); if (isDensityOn === false && isDensityCustomOn === false) {