R/modals.R

Defines functions .modal_wait .modal_fixit

.modal_fixit <- function(error, action) {
  showModal(
    modalDialog(
      action,
      title = paste("Error:", error),
      easyClose = TRUE,
      footer = tagList(modalButton("Ok"))
    )
  )
}

.modal_wait <- function(action, message) {
  showModal(
    modalDialog(
      message,
      title = paste("Please wait:", action),
      footer = NULL,
      fade = FALSE
    )
  )
}
r4ds/bookclubber documentation built on April 10, 2024, 6:12 p.m.