Switch to the results page when the preset changes

This commit is contained in:
Elias Projahn 2022-01-25 16:27:18 +01:00
parent 2faaeb869a
commit 2ced93aa94
2 changed files with 9 additions and 0 deletions

View file

@ -12,6 +12,14 @@ server <- function(input, output, session) {
preset <- input_reactives$preset
comparison_gene_ids <- input_reactives$comparison_gene_ids
observe({
updateNavbarPage(
session,
"main_page",
selected = "Results"
)
}) |> bindEvent(preset(), ignoreInit = TRUE)
# Compute the results according to the preset.
analysis <- reactive({
preset <- preset()

1
R/ui.R
View file

@ -2,6 +2,7 @@ ui <- div(
shinyjs::useShinyjs(),
rclipboard::rclipboardSetup(),
navbarPage(
id = "main_page",
theme = bslib::bs_theme(
version = 5,
bootswatch = "united",