Skip to content

Commit 3a9f879

Browse files
committed
chore: move ui to conditional
1 parent 205ac0b commit 3a9f879

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

R/tm_g_distribution.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,7 @@ ui_distribution <- function(id, ...) {
281281
inline = TRUE
282282
),
283283
checkboxInput(ns("add_dens"), label = "Overlay Density", value = TRUE),
284+
ui_teal_transform_data(ns("d_dist"), transformators = args$decorators),
284285
collapsed = FALSE
285286
)
286287
),
@@ -289,6 +290,7 @@ ui_distribution <- function(id, ...) {
289290
teal.widgets::panel_item(
290291
"QQ Plot",
291292
checkboxInput(ns("qq_line"), label = "Add diagonal line(s)", TRUE),
293+
ui_teal_transform_data(ns("d_qq"), transformators = args$decorators),
292294
collapsed = FALSE
293295
)
294296
),
@@ -343,7 +345,6 @@ ui_distribution <- function(id, ...) {
343345
"Statistics Table",
344346
sliderInput(ns("roundn"), "Round to n digits", min = 0, max = 10, value = 2)
345347
),
346-
ui_teal_transform_data(ns("decorate"), transformators = args$decorators[[1]]),
347348
teal.widgets::panel_item(
348349
title = "Plot settings",
349350
selectInput(

0 commit comments

Comments
 (0)