DaveM2430 commited on
Commit
f3130df
·
verified ·
1 Parent(s): 1c1236e

Update app.R

Browse files
Files changed (1) hide show
  1. app.R +3 -1
app.R CHANGED
@@ -538,15 +538,17 @@ server <- function(input, output, session) {
538
  })
539
  })
540
 
541
- observeEvent(input$position, {
542
  if (input$position == "Pitcher") {
543
  session$sendCustomMessage("update_label", "Min Pitches")
544
  shinyjs::hide("hitter_filters")
545
  updateSelectInput(session, "level", selected = "D1")
 
546
  } else {
547
  session$sendCustomMessage("update_label", "Min PA")
548
  shinyjs::show("hitter_filters")
549
  updateSelectInput(session, "level", selected = "All")
 
550
  }
551
  })
552
 
 
538
  })
539
  })
540
 
541
+ oobserveEvent(input$position, {
542
  if (input$position == "Pitcher") {
543
  session$sendCustomMessage("update_label", "Min Pitches")
544
  shinyjs::hide("hitter_filters")
545
  updateSelectInput(session, "level", selected = "D1")
546
+ updateNumericInput(session, "min_pitches", value = 100)
547
  } else {
548
  session$sendCustomMessage("update_label", "Min PA")
549
  shinyjs::show("hitter_filters")
550
  updateSelectInput(session, "level", selected = "All")
551
+ updateNumericInput(session, "min_pitches", value = 25)
552
  }
553
  })
554