Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move tab update on button click from dcc selection module to data flow app #224

Merged
merged 2 commits into from
Nov 2, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions R/app_server.R
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,16 @@ app_server <- function( input, output, session ) {
# SELECT A DCC #############################################################
mod_select_dcc_out <- dfamodules::mod_select_dcc_server("select_dcc",
dcc_config,
access_token,
session)
access_token)

# on button click (submit in dcc selection module)
# update current tab to be dashboard tab
observeEvent(mod_select_dcc_out()$btn_click, {
shinydashboard::updateTabItems(session = session,
inputId = "tabs",
selected = "tab_dashboard")

})

# GENERATE DASHBOARD ON CLICK ##############################################
dash_config_react <- reactive({
Expand Down