File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ type serverConfig struct {
17
17
Lang string `json:"lang"`
18
18
Update * AppUpdate `json:"update"`
19
19
NeedsRestart bool `json:"needs_restart"`
20
+ Version string `json:"version"`
20
21
}
21
22
22
23
// handleGetServerConfig returns general server config.
@@ -51,6 +52,7 @@ func handleGetServerConfig(c echo.Context) error {
51
52
out .NeedsRestart = app .needsRestart
52
53
out .Update = app .update
53
54
app .Unlock ()
55
+ out .Version = versionString
54
56
55
57
return c .JSON (http .StatusOK , okResp {out })
56
58
}
Original file line number Diff line number Diff line change 3
3
<b-loading :is-full-page =" true" v-if =" loading.settings || isLoading" active />
4
4
<header class =" columns" >
5
5
<div class =" column is-half" >
6
- <h1 class =" title is-4" >{{ $t('settings.title') }}</h1 >
6
+ <h1 class =" title is-4" >{{ $t('settings.title') }}
7
+ <span class =" has-text-grey-light" >({{ serverConfig.version }})</span >
8
+ </h1 >
7
9
</div >
8
10
<div class =" column has-text-right" >
9
11
<b-button :disabled =" !hasFormChanged"
You can’t perform that action at this time.
0 commit comments