Skip to content

Commit

Permalink
add notes
Browse files Browse the repository at this point in the history
  • Loading branch information
cristinamullin committed Dec 12, 2024
1 parent 5448456 commit 485e9fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/mod_query_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -268,9 +268,8 @@ mod_query_data_server <- function(id, tadat) {
shiny::moduleServer(id, function(input, output, session) {
ns <- session$ns

# template used for importing data to TADAShiny
## creates download template button used for importing data to TADAShiny - used in option C
template_data <- reactive(EPATADA::TADA_GetTemplate())

# return an ms excel file with the template columns
output$download_template <- shiny::downloadHandler(
filename = function() {
Expand All @@ -287,6 +286,7 @@ mod_query_data_server <- function(id, tadat) {
contentType = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
)

## greys out Load button for example data until file has been selected
# https://stackoverflow.com/questions/24175997/force-no-default-selection-in-selectinput
shiny::observeEvent(input$example_data, {
if (!is.na(input$example_data) && nchar(input$example_data) > 1) {
Expand Down

0 comments on commit 485e9fc

Please sign in to comment.