Skip to content

Commit

Permalink
#28-0 bring back filter_active_vars_contents disable and enable
Browse files Browse the repository at this point in the history
  • Loading branch information
m7pr committed Jun 6, 2023
1 parent 2e9d61d commit 66f86fd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions R/FilteredData.R
Original file line number Diff line number Diff line change
Expand Up @@ -1110,6 +1110,7 @@ FilteredData <- R6::R6Class( # nolint
private$filter_panel_active <- FALSE
fp_id <- self$get_filter_panel_ui_id()
shinyjs::disable(paste0(fp_id, "-add"), asis = TRUE)
shinyjs::disable("filter_active_vars_contents")
slices <- self$get_filter_state()
if (!is.null(slices)) {
private$cached_states <- slices
Expand All @@ -1132,6 +1133,7 @@ FilteredData <- R6::R6Class( # nolint
private$filter_panel_active <- TRUE
fp_id <- self$get_filter_panel_ui_id()
shinyjs::enable(paste0(fp_id, "-add"), asis = TRUE)
shinyjs::enable("filter_active_vars_contents")
slices <- private$cached_states
# If no states were cached, use existing ones.
# This is necessary because this method is called on start-up.
Expand Down

0 comments on commit 66f86fd

Please sign in to comment.