Skip to content

Commit

Permalink
feat: initial prototype of wizard reset
Browse files Browse the repository at this point in the history
  • Loading branch information
mauromiguelm committed Mar 19, 2024
1 parent 8da38bd commit aca5eaa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion components/board.upload/R/upload_server.R
Original file line number Diff line number Diff line change
Expand Up @@ -631,9 +631,14 @@ UploadBoard <- function(id,
return(pgx)
})

# reset wizard when computation is finished
observeEvent(input$reset_wizard, {
browser()
wizardR::reset("upload_wizard")
})

# wizard lock/unlock logic


# lock/unlock wizard for samples.csv
observeEvent(
list(uploaded$counts.csv, checked_counts, input$upload_wizard), {
Expand Down
1 change: 1 addition & 0 deletions components/board.upload/R/upload_ui.R
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ UploadUI <- function(id) {

samples_ui <- wizardR::wizard_step(
step_title = "Samples",
shiny::actionButton(ns("reset_wizard"), "Reset", icon = icon("refresh")),
upload_table_preview_samples_ui(
ns("samples_preview")
)
Expand Down

0 comments on commit aca5eaa

Please sign in to comment.