Skip to content

Commit

Permalink
testing environment variable LOCAL for js
Browse files Browse the repository at this point in the history
  • Loading branch information
Konrad1991 committed Dec 18, 2024
1 parent 204bd2b commit 8339784
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion app/MainApp.R
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,7 @@ app <- function() {
output$conditional_data_ui <- renderUI({
showNotification(Sys.getenv("RUN_MODE"), duration = 0)
showNotification(as.character(Sys.getenv("RUN_MODE") != "SERVER"), duration = 0)
res <- NULL
if (Sys.getenv("RUN_MODE") != "SERVER") {
showNotification("Test", duration = 0)
res <- conditionalPanel(
Expand All @@ -368,8 +369,10 @@ app <- function() {
)
)
)
return(res)
# return(res)
}
str(res)
return(res)
})

download_file <- reactive({
Expand Down
5 changes: 4 additions & 1 deletion bs/R/MainApp.R
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,7 @@ app <- function() {
output$conditional_data_ui <- renderUI({
showNotification(Sys.getenv("RUN_MODE"), duration = 0)
showNotification(as.character(Sys.getenv("RUN_MODE") != "SERVER"), duration = 0)
res <- NULL
if (Sys.getenv("RUN_MODE") != "SERVER") {
showNotification("Test", duration = 0)
res <- conditionalPanel(
Expand All @@ -368,8 +369,10 @@ app <- function() {
)
)
)
return(res)
# return(res)
}
str(res)
return(res)
})

download_file <- reactive({
Expand Down

0 comments on commit 8339784

Please sign in to comment.