@@ -14,15 +14,6 @@ mod_mitigators_server <- function(
1414 mitigator_codes_lkup ,
1515 peers
1616) {
17- selected_time_profile <- update_time_profile <- NULL
18- # nolint start: object_usage_linter
19- c(selected_time_profile , update_time_profile ) %<- %
20- mod_time_profile_server(
21- shiny :: NS(id , " time_profile" ),
22- params
23- )
24- # nolint end
25-
2617 config <- get_golem_config(" mitigators_config" )[[id ]]
2718
2819 activity_type <- config $ activity_type
@@ -39,7 +30,6 @@ mod_mitigators_server <- function(
3930
4031 shiny :: moduleServer(id , function (input , output , session ) {
4132 slider_values <- shiny :: reactiveValues()
42- time_profile_mappings <- shiny :: reactiveValues()
4333
4434 strategies <- shiny :: reactive({
4535 # make sure a provider is selected
@@ -115,9 +105,6 @@ mod_mitigators_server <- function(
115105 }
116106 })
117107
118- tpm <- params $ time_profile_mappings [[mitigators_type ]][[activity_type ]]
119- time_profile_mappings $ mappings <- tpm
120-
121108 init $ destroy()
122109 },
123110 priority = 100
@@ -196,10 +183,6 @@ mod_mitigators_server <- function(
196183 " slider" ,
197184 value = values
198185 )
199-
200- update_time_profile(
201- time_profile_mappings $ mappings [[strategy ]] %|| % " linear"
202- )
203186 }) | >
204187 shiny :: bindEvent(input $ strategy )
205188
@@ -220,18 +203,6 @@ mod_mitigators_server <- function(
220203 }) | >
221204 shiny :: bindEvent(input $ slider , input $ include )
222205
223- shiny :: observe({
224- strategy <- shiny :: req(input $ strategy )
225- tp <- shiny :: req(selected_time_profile())
226-
227- time_profile_mappings $ mappings [[strategy ]] <- tp
228-
229- params $ time_profile_mappings [[mitigators_type ]][[activity_type ]][[
230- strategy
231- ]] <- if (input $ include ) tp
232- }) | >
233- shiny :: bindEvent(selected_time_profile(), input $ include )
234-
235206 shiny :: observe({
236207 shinyjs :: toggleState(" slider" , condition = input $ include )
237208 }) | >
0 commit comments