Skip to content

Commit 511568c

Browse files
committed
[compare] add missing refresh button IDs
1 parent 2d60bc3 commit 511568c

File tree

2 files changed

+14
-8
lines changed

2 files changed

+14
-8
lines changed

src/modules/scen_compare.R

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,13 @@ output$active_tab_actions_ui <- renderUI({
4747
),
4848
tags$div(
4949
class = "content-buttons-wrapper",
50-
tags$button(
51-
title = lang$nav$scen$tooltips$btRefresh, class = "btn btn-default bt-icon",
52-
type = "button", onclick = paste0("Shiny.setInputValue('btRefreshComp',", scenId, ",{priority:'event'})"),
53-
icon("rotate")
50+
tags$div(
51+
id = paste0("refreshSandbox_", scenId),
52+
tags$button(
53+
title = lang$nav$scen$tooltips$btRefresh, class = "btn btn-default bt-icon",
54+
type = "button", onclick = paste0("Shiny.setInputValue('btRefreshComp',", scenId, ",{priority:'event'})"),
55+
icon("rotate")
56+
)
5457
),
5558
HTML(paste0(
5659
'<button type="button" class="btn btn-default bt-icon" title="', lang$nav$scen$tooltips$btExport,

src/modules/scen_render.R

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,13 @@ renderScenInCompMode <- function(scenId, refreshData = FALSE) {
4141
if (scenId %in% c(2, 3)) {
4242
buttonsUI <- tags$div(
4343
class = "header-action-buttons",
44-
tags$button(
45-
title = lang$nav$scen$tooltips$btRefresh, class = "btn btn-default bt-icon",
46-
type = "button", onclick = paste0("Shiny.setInputValue('btRefreshComp',", scenId, ",{priority:'event'})"),
47-
tags$i(class = "fas fa-rotate", role = "presentation", `aria-label` = lang$nav$scen$tooltips$btRefresh)
44+
tags$div(
45+
id = paste0("refreshSandbox_", scenId),
46+
tags$button(
47+
title = lang$nav$scen$tooltips$btRefresh, class = "btn btn-default bt-icon",
48+
type = "button", onclick = paste0("Shiny.setInputValue('btRefreshComp',", scenId, ",{priority:'event'})"),
49+
tags$i(class = "fas fa-rotate", role = "presentation", `aria-label` = lang$nav$scen$tooltips$btRefresh)
50+
)
4851
),
4952
HTML(paste0(
5053
'<button type="button" class="btn btn-default bt-icon" title="', lang$nav$scen$tooltips$btExport,

0 commit comments

Comments
 (0)