@@ -771,25 +771,11 @@ const getStatus = (condition: any, warn: boolean = false) => {
771771 <v-expansion-panel v-if =" currentMgrsTileId && settings.expertMode" value =" coverage" >
772772 <v-expansion-panel-title >
773773 <span class =" header-text" >
774- <v-badge
775- v-bind ="
776- getStatus(
777- settings.cloudCover <= 50 &&
778- (!settings.autoSceneSelection || settings.buffer >= 14),
779- true,
780- )
781- "
782- ></v-badge >
774+ <v-badge v-bind =" getStatus(settings.cloudCover <= 50, true)" ></v-badge >
783775 Coverage
784776 <v-badge inline color =" blue" :content =" `Cloud: ${settings.cloudCover}%`" ></v-badge >
785777 <v-badge
786- v-if =" settings.autoSceneSelection"
787- inline
788- color =" purple"
789- :content =" `Buffer: ${settings.buffer} days`"
790- ></v-badge >
791- <v-badge
792- v-else
778+ v-if =" !settings.autoSceneSelection"
793779 inline
794780 color =" brown"
795781 :content =" `Area: ${settings.areaCoverage}%`"
@@ -842,96 +828,72 @@ const getStatus = (condition: any, warn: boolean = false) => {
842828 </v-col >
843829 </v-row >
844830 <!-- Area Coverage -->
845- <v-row >
846- <v-col cols =" 6" >
847- <v-label class =" text-subtitle-2" >
848- <template v-if =" settings .autoSceneSelection " >Search Buffer (days)</template >
849- <template v-else >Area Coverage (%)</template >
850- </v-label >
851- </v-col >
852-
853- <v-col cols =" 6" class =" d-flex justify-end" >
854- <v-number-input
855- v-if =" settings.autoSceneSelection"
856- v-model =" settings.buffer"
857- @update:model-value =" updateBufferInput"
858- :min =" 1"
859- :max =" 60"
860- :step =" 1"
861- :precision =" 0"
862- density =" compact"
863- variant =" outlined"
864- control-variant =" stacked"
865- hide-details
866- class =" coverage-input"
867- ></v-number-input >
868- <v-number-input
869- v-else
870- v-model =" settings.areaCoverage"
871- @update:model-value =" updateAreaCoverageInput"
872- :min =" 1"
873- :max =" 100"
874- :step =" 1"
875- :precision =" 0"
876- density =" compact"
877- variant =" outlined"
878- control-variant =" stacked"
879- hide-details
880- class =" coverage-input"
881- ></v-number-input >
882- </v-col >
883- </v-row >
884- <v-row >
885- <v-col >
886- <v-slider
887- v-if =" settings.autoSceneSelection"
888- v-model =" settings.buffer"
889- @update:model-value =" updateBufferInput"
890- :min =" 1"
891- :max =" 60"
892- :step =" 1"
893- color =" teal"
894- track-color =" grey-darken-2"
895- thumb-color =" teal"
896- hide-details
897- />
898- <v-slider
899- v-else
900- v-model =" settings.areaCoverage"
901- @update:model-value =" updateAreaCoverageInput"
902- :min =" 1"
903- :max =" 100"
904- :step =" 1"
905- color =" teal"
906- track-color =" grey-darken-2"
907- thumb-color =" teal"
908- hide-details
909- />
910- </v-col >
911- </v-row >
912- <v-row v-if =" settings.autoSceneSelection" >
913- <v-col >
914- <v-alert v-if =" settings.buffer < 14" type =" warning" variant =" tonal" density =" compact" >
915- A search buffer of less than 14 days may decrease the probability of getting results
916- for automatic scene selection.
917- </v-alert >
918- </v-col >
919- </v-row >
831+ <template v-if =" ! settings .autoSceneSelection " >
832+ <v-row >
833+ <v-col cols =" 6" >
834+ <v-label class =" text-subtitle-2" >Area Coverage (%)</v-label >
835+ </v-col >
836+ <v-col cols =" 6" class =" d-flex justify-end" >
837+ <v-number-input
838+ v-model =" settings.areaCoverage"
839+ @update:model-value =" updateAreaCoverageInput"
840+ :min =" 1"
841+ :max =" 100"
842+ :step =" 1"
843+ :precision =" 0"
844+ density =" compact"
845+ variant =" outlined"
846+ control-variant =" stacked"
847+ hide-details
848+ class =" coverage-input"
849+ ></v-number-input >
850+ </v-col >
851+ </v-row >
852+ <v-row >
853+ <v-col >
854+ <v-slider
855+ v-model =" settings.areaCoverage"
856+ @update:model-value =" updateAreaCoverageInput"
857+ :min =" 1"
858+ :max =" 100"
859+ :step =" 1"
860+ color =" teal"
861+ track-color =" grey-darken-2"
862+ thumb-color =" teal"
863+ hide-details
864+ />
865+ </v-col >
866+ </v-row >
867+ </template >
920868 </v-expansion-panel-text >
921869 </v-expansion-panel >
922870 <!-- Scene Selection -->
923871 <v-expansion-panel v-if =" currentMgrsTileId" value =" scene-selection" >
924872 <v-expansion-panel-title >
925873 <span class =" header-text" >
926- <v-badge v-bind =" getStatus(settings.autoSceneSelection, true)" ></v-badge >
927- Scene Selection Mode
874+ <v-badge
875+ v-bind ="
876+ getStatus(
877+ settings.autoSceneSelection &&
878+ (!settings.autoSceneSelection || settings.buffer >= 14),
879+ true,
880+ )
881+ "
882+ ></v-badge >
883+ Scene Selection
928884 <v-badge
929885 v-if =" settings.autoSceneSelection"
930886 inline
931887 color =" teal"
932888 content =" Automatic"
933889 ></v-badge >
934890 <v-badge v-else inline color =" warning" content =" Manual" ></v-badge >
891+ <v-badge
892+ v-if =" settings.autoSceneSelection"
893+ inline
894+ color =" teal"
895+ :content =" `Buffer: ${settings.buffer} days`"
896+ ></v-badge >
935897 </span >
936898 </v-expansion-panel-title >
937899 <v-expansion-panel-text >
@@ -952,6 +914,57 @@ const getStatus = (condition: any, warn: boolean = false) => {
952914 </v-alert >
953915 </v-col >
954916 </v-row >
917+
918+ <template v-if =" settings .autoSceneSelection " >
919+ <v-row >
920+ <v-col cols =" 6" >
921+ <v-label class =" text-subtitle-2" >Search Buffer (days)</v-label >
922+ </v-col >
923+ <v-col cols =" 6" class =" d-flex justify-end" >
924+ <v-number-input
925+ v-model =" settings.buffer"
926+ @update:model-value =" updateBufferInput"
927+ :min =" 1"
928+ :max =" 60"
929+ :step =" 1"
930+ :precision =" 0"
931+ density =" compact"
932+ variant =" outlined"
933+ control-variant =" stacked"
934+ hide-details
935+ class =" coverage-input"
936+ ></v-number-input >
937+ </v-col >
938+ </v-row >
939+ <v-row >
940+ <v-col >
941+ <v-slider
942+ v-model =" settings.buffer"
943+ @update:model-value =" updateBufferInput"
944+ :min =" 1"
945+ :max =" 60"
946+ :step =" 1"
947+ color =" teal"
948+ track-color =" grey-darken-2"
949+ thumb-color =" teal"
950+ hide-details
951+ />
952+ </v-col >
953+ </v-row >
954+ <v-row >
955+ <v-col >
956+ <v-alert
957+ v-if =" settings.buffer < 14"
958+ type =" warning"
959+ variant =" tonal"
960+ density =" compact"
961+ >
962+ A search buffer of less than 14 days may decrease the probability of getting
963+ results for automatic scene selection.
964+ </v-alert >
965+ </v-col >
966+ </v-row >
967+ </template >
955968 </v-expansion-panel-text >
956969 </v-expansion-panel >
957970 <!-- Scene A -->
0 commit comments