Skip to content

Commit

Permalink
start hidden box without server
Browse files Browse the repository at this point in the history
  • Loading branch information
calderonsamuel committed Aug 26, 2022
1 parent 3fd2957 commit 5290c34
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions R/mod_task_manager.R
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ mod_task_man_output <- function(id, user_iniciado) {
label = "¿Necesita plantilla?",
choices = c("No" = "false",
"" = "true")
# status = "info"
)
),
col_6(
Expand All @@ -75,7 +74,7 @@ mod_task_man_output <- function(id, user_iniciado) {
btn_guardar(ns("save"), block = TRUE)
)
)
)
) |> boxHide()
)
}

Expand All @@ -86,7 +85,7 @@ mod_task_man_server <- function(id, user_iniciado) {
moduleServer(id, function(input, output, session) {
ns <- session$ns

bs4Dash::updateBox("box_nueva_tarea", "remove")
# bs4Dash::updateBox("box_nueva_tarea", "remove")

choices_for_tasks <- user_get_choices_for_tasks(user_iniciado)

Expand Down Expand Up @@ -138,7 +137,7 @@ mod_task_man_server <- function(id, user_iniciado) {
})

observe({
bs4Dash::updateBox(id = "box_nueva_tarea", action = "restore")
bs4Dash::updateBox(id = "box_nueva_tarea", action = "restore", session = session)
}) |> bindEvent(input$add)

observeEvent(input$type,{
Expand All @@ -159,14 +158,14 @@ mod_task_man_server <- function(id, user_iniciado) {

updateTextAreaInput(session, "description", value = "")

bs4Dash::updateBox(id = "box_nueva_tarea", action = "remove")
bs4Dash::updateBox(id = "box_nueva_tarea", action = "remove", session = session)

alert_success(session = session, text = "La tarea se añadió correctamente")
}
})

observe({
bs4Dash::updateBox(id = "box_nueva_tarea", action = "remove")
bs4Dash::updateBox(id = "box_nueva_tarea", action = "remove", session = session)
}) |> bindEvent(input$cancelar)

# return
Expand Down

0 comments on commit 5290c34

Please sign in to comment.