Skip to content

Commit

Permalink
Allow bookmarking
Browse files Browse the repository at this point in the history
  • Loading branch information
nfrerebeau committed Dec 20, 2023
1 parent ad648c6 commit 70557a2
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions R/module_home.R
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ module_home_ui <- function(id, name = NULL) {
tabPanel(
title = "Save",
h4("Bookmarking"),
tags$p(textOutput(outputId = ns("bookmarking"))),
bookmarkButton(),
tags$p(textOutput(outputId = ns("last_saved")))
uiOutput(outputId = ns("bookmarking")),
uiOutput(outputId = ns("last_saved")),
bookmarkButton()
)
)
) # mainPanel
Expand Down Expand Up @@ -138,13 +138,13 @@ module_home_server <- function(id) {
cat(msg, sep = "\n")
})

output$bookmarking <- renderText({
output$bookmarking <- renderUI({
book <- janus::get_option("bookmark") != "disable"
sprintf("Bookmarking is %s.", ifelse(book, "enabled", "disabled"))
tags$p("Bookmarking is", tags$strong(ifelse(book, "enabled", "disabled")))
})
output$last_saved <- renderText({
output$last_saved <- renderUI({
req(saved())
paste("Last saved at", saved())
tags$p("Last saved at", saved())
})
})
}

0 comments on commit 70557a2

Please sign in to comment.