Skip to content

Commit

Permalink
Added a toast in case of test data being used
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulJonasJost committed Oct 23, 2024
1 parent 109750a commit d472863
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions program/shinyApp/server.R
Original file line number Diff line number Diff line change
Expand Up @@ -494,11 +494,18 @@ server <- function(input,output,session){
)){
output$debug <- renderText("The Upload has failed, or you haven't uploaded anything yet")
} else if (uploaded_from() == "testdata"){
show_toast(
title = paste(par_tmp[[session$token]]['omic_type'],"Example Upload"),
text = paste(par_tmp[[session$token]]['omic_type'],"- Example upload was successful"),
position = "top",
timer = 1500,
timerProgressBar = T
)
output$debug <- renderText({"The Test Data Set was used"})
} else {
show_toast(
title = paste(par_tmp[[session$token]]['omic_type'],"Data Upload"),
text = paste(par_tmp[[session$token]]['omic_type'],"-data upload was successful"),
text = paste(par_tmp[[session$token]]['omic_type'],"- data upload was successful"),
position = "top",
timer = 1500,
timerProgressBar = T
Expand Down Expand Up @@ -527,6 +534,7 @@ server <- function(input,output,session){

}
showTab(inputId = "tabsetPanel1", target = "Pre-processing")

}
})

Expand Down Expand Up @@ -679,7 +687,6 @@ server <- function(input,output,session){
"Number. of anno options annotation_rows lost: ",
nrow(res_tmp[[session$token]]$data_original) - nrow(res_tmp[[session$token]]$data)
))

return("DataUploadSuccesful")
})
#data_input_shiny = is the res object now which is global => not needed ?!
Expand Down

0 comments on commit d472863

Please sign in to comment.