Skip to content

Commit

Permalink
empty term error message
Browse files Browse the repository at this point in the history
  • Loading branch information
kwlyu committed Sep 10, 2024
1 parent e866697 commit 18d3d15
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions PAC-data-analyzer/app.R
Original file line number Diff line number Diff line change
Expand Up @@ -1631,6 +1631,35 @@ server <- function(input, output, session) {
}
})


observeEvent(input$deleteTerm, {
if (input$termID == "") {
shinyalert(title = "Error!", text = "Please specify which term you want to delete.",
closeOnEsc = TRUE,
closeOnClickOutside = TRUE,
showConfirmButton = TRUE,
type = "error",
confirmButtonText = "OK",
confirmButtonCol = "#eb8634",
animation = TRUE
)
}
})

observeEvent(input$submitNewTerm, {
if (input$termID == "") {
shinyalert(title = "Error!", text = "Please specify which term you want to upload.",
closeOnEsc = TRUE,
closeOnClickOutside = TRUE,
showConfirmButton = TRUE,
type = "error",
confirmButtonText = "OK",
confirmButtonCol = "#eb8634",
animation = TRUE
)
}
})

##################### New Term Table #############

output$term_table <- renderReactable({
Expand Down

0 comments on commit 18d3d15

Please sign in to comment.