Skip to content

Commit

Permalink
exclude bookmark values - thanks @Polkas
Browse files Browse the repository at this point in the history
  • Loading branch information
gogonzo committed Mar 26, 2024
1 parent 28bb1a7 commit 0cc4df5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions R/AddCardModule.R
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ add_card_button_srv <- function(id, reporter, card_fun) {
shiny::moduleServer(
id,
function(input, output, session) {
setBookmarkExclude(c("add_report_card_button", "add_card_ok"))
ns <- session$ns
add_modal <- function() {
shiny::modalDialog(
Expand Down
2 changes: 1 addition & 1 deletion R/DownloadModule.R
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ download_report_button_srv <- function(id,
id,
function(input, output, session) {
ns <- session$ns

shiny::setBookmarkExclude(c("download_button"))
download_modal <- function() {
nr_cards <- length(reporter$get_cards())
downb <- shiny::tags$a(
Expand Down
1 change: 1 addition & 0 deletions R/Previewer.R
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ reporter_previewer_srv <- function(id,

shiny::moduleServer(id, function(input, output, session) {
ns <- session$ns
shiny::setBookmarkExclude(c("resetButtonPreviewer", "download_data_prev"))

session$onBookmark(function(state) {
state$values$report_cards <- reporter$get_cards()
Expand Down

0 comments on commit 0cc4df5

Please sign in to comment.