From 6e90dc70bcf2fe2d8e74aa513cb82650c5a8d3c6 Mon Sep 17 00:00:00 2001 From: Carlos Quiroz Date: Wed, 14 Aug 2024 19:00:32 -0400 Subject: [PATCH] Set s/n @ controls as readonly if needed --- .../scala/explore/config/AdvancedConfigurationPanel.scala | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/explore/src/main/scala/explore/config/AdvancedConfigurationPanel.scala b/explore/src/main/scala/explore/config/AdvancedConfigurationPanel.scala index 27c13894e5..50485a2552 100644 --- a/explore/src/main/scala/explore/config/AdvancedConfigurationPanel.scala +++ b/explore/src/main/scala/explore/config/AdvancedConfigurationPanel.scala @@ -131,12 +131,6 @@ sealed abstract class AdvancedConfigurationPanelBuilder[ Logger[IO] ): View[Fpu] - // @inline protected def overrideExposureTimeMode(aligner: AA)(using - // MonadError[IO, Throwable], - // Effect.Dispatch[IO], - // Logger[IO] - // ): View[Option[ExposureTimeMode]] - @inline protected def explicitBinning(aligner: AA)(using MonadError[IO, Throwable], Effect.Dispatch[IO], @@ -576,7 +570,7 @@ sealed abstract class AdvancedConfigurationPanelBuilder[ disabled = disableSimpleEdit ), dithersControl(props.sequenceChanged), - SignalToNoiseAt(props.spectroscopyRequirements, false) + SignalToNoiseAt(props.spectroscopyRequirements, props.readonly) // FormLabel(htmlFor = "exposureMode".refined)( // "Exposure Mode", // HelpIcon("configuration/exposure-mode.md".refined)