-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsrvUi.R
89 lines (79 loc) · 2.85 KB
/
srvUi.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# server-side UI logic
# last update: 2016-10-07
output$versionHistory <- renderText({
do.call(paste, as.list(apply(verHistory,1,function(x){
paste0('<p><strong>Version ', x[1], '</strong></p>',
'<p>', x[2], '</p>') })))
})
output$hdrImageLinkDesktop <- renderUI({
# fix for "Raspberry Navigation"
updateNavbarPage(session, 'mainPage', selected = appName)
#session$sendCustomMessage(type='finishInit', NA)
renderHdrImageLink()
})
headerTitle <- function() {
app <- currApp()
if(length(all.equal(app, logical(0)))>1){
app <- currApp()
url <- itemsUrl(app[['url']], infoKey)
infoRec <- readItems(app, url)
if(nrow(infoRec) == 1){
infoRec$name
} else {
"Mein Datentresor"
}
} else {
"Mein Datentresor"
}
}
renderHdrImageLink <- function() {
app <- currApp()
if(length(app) > 0){
tags$div(
tags$a(href=app[['url']],
tags$img(height='25px', style='margin-top:-5px',
src=oydLogo)),
tags$a(href=app[['url']],
headerTitle())
)
} else {
tags$div(
tags$img(height='25px',
style='margin-top:-5px',
src=oydLogo),
headerTitle()
)
}
}
observeEvent(input$buttonVisual, {
session$sendCustomMessage(type='setDisplayButton',
'buttonVisual')
output$displayVisual <- renderText('.')
output$displaySource <- renderText('')
output$displayStore <- renderText('')
})
observeEvent(input$buttonSource, {
session$sendCustomMessage(type='setDisplayButton',
'buttonSource')
output$displayVisual <- renderText('')
output$displaySource <- renderText('.')
output$displayStore <- renderText('')
})
observeEvent(input$buttonStore, {
session$sendCustomMessage(type='setDisplayButton',
'buttonStore')
output$displayVisual <- renderText('')
output$displaySource <- renderText('')
output$displayStore <- renderText('.')
})
output$displayVisual <- reactive({
output$displayVisual <- renderText('.')
output$displaySource <- renderText('')
output$displayStore <- renderText('')
})
output$dataSheetDirty <- reactive({
output$dataSheetDirty <- renderText('')
})
observeEvent(input$backToApp, {
updateNavbarPage(session, 'mainPage', selected = appName)
})