You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
When a user clicks "Download Working Dataset" or "Download Final Dataset" the application does not do anything right away. It can take over a minute for the file to download.
Describe the solution you'd like
It would be helpful if there was a pop up to let the user know it is running and that they should not hit the button again. It could be the same as the pop up we use for the flag page to let a user know they are running:
Additional context
The text was updated successfully, but these errors were encountered:
Additionally - the download buttons are active by default. They should be inactive or hidden until there is data loaded.
I think the TADA_summary panel maybe should be hidden until there is data. But instead it is displayed always. It has something to do with setting tadat$raw = NULL - which makes req(tadat$raw) == TRUE
I added a variable tadat$ready_for_download that is created in the mod_query_data.initializeTable(). This toggles the visibility of the download buttons
# Download ... Dataset button - only appears if there data exists in the app already
output$dwn_working <- shiny::renderUI({
shiny::req(tadat$ready_for_download)
shinyjs::disabled(shiny::downloadButton(ns("download_working"),
"Download Working Dataset (.zip)",
style = "color: #fff; background-color: #337ab7; border-color: #2e6da4; margin-bottom: 10px;",
contentType = "application/zip"
))
})
I figured out how to disable the button once it is clicked. The part that is not shown on the googles, is that the id for elements in this panel have 2 parts - the id of the panel ('TADA_summary_1') and the id of the button 'download_button'). So the code for disabling and enabling reads
Then I realized I should use a spinner to stop the user (just like the write up for the ticket suggests), so the final fix did not really need to turn off the button. Instead freeze the whole app while the file is downloading
Is your feature request related to a problem? Please describe.
When a user clicks "Download Working Dataset" or "Download Final Dataset" the application does not do anything right away. It can take over a minute for the file to download.
Describe the solution you'd like
It would be helpful if there was a pop up to let the user know it is running and that they should not hit the button again. It could be the same as the pop up we use for the flag page to let a user know they are running:
Additional context
The text was updated successfully, but these errors were encountered: