Skip to content
Snippets Groups Projects
Commit 88c1b3a3 authored by jens.preussner's avatar jens.preussner :ghost:
Browse files
parents 427a850e c5ed97bb
No related branches found
No related tags found
No related merge requests found
Pipeline #96268 passed
......@@ -34,8 +34,8 @@ setMethod("add_page", "i2dashboard", function(object, page, title, layout = "def
if(name %in% names(object@pages)) {
warning(paste("The page", name, "already exists and will be overwritten."))
if(base::interactive()) {
override_page <- menu(c("Yes, overwrite page", "Cancel"), title = "Do you want to overwrite this page?")
skip <- switch(override_page,
overwrite_page <- menu(c("Yes, overwrite page", "Cancel"), title = "Do you want to overwrite this page?")
skip <- switch(overwrite_page,
"1" = FALSE,
"2" = TRUE)
if (skip) stop("Aborted.")
......
......@@ -4,7 +4,7 @@
<!-- Page created on <% date %> -->
<% if(!is.null(sidebar)) sidebar %>
Column
Column {.tabset}
----------------------------------------------------
<% components %>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment