Skip to content

Commit

Permalink
Remove preview warning and add info on how to run the bootstrap.
Browse files Browse the repository at this point in the history
  • Loading branch information
ohjakobsen committed Aug 20, 2024
1 parent f87929a commit 4c5baae
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion R/shiny-functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ set_message <- function(level, message, object = NULL, append = FALSE) {
"alert alert-info"
)
icon <- if (level == "info") "info-circle" else "exclamation-circle"
div <- div(class = classes, list(bsicons::bs_icon(icon, class = "me-2"), message))
div <- div(class = classes, role = "alert", list(bsicons::bs_icon(icon, class = "me-2"), message))
# If we do not have a reactive, return the div
if (is.null(object)) {
return(div)
Expand Down
6 changes: 5 additions & 1 deletion R/ui.R
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,11 @@ ui <- function(request) { page_navbar(
actionButton("run_boot", "Run bootstrap", class = "btn-primary btn-sm mb-2"),
actionButton("clear_boot_cache", "Clear cache", class = "btn-warning btn-sm")
),
div(class = 'alert alert-info', role = 'alert', 'Bootstrap functionality is currently in preview'),
set_message(
"info",
"Results are cached by default. You can clear the cache by pressing the button in the
sidebar. Press \"Run bootstrap\" to estimate the bootstrap"
),
uiOutput('boot_tbl')
)
),
Expand Down

0 comments on commit 4c5baae

Please sign in to comment.