From 71ea4a0c34efdd79d3d39cfc3bd89fd44b25e4a7 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Thu, 20 Jan 2022 01:16:05 +0100 Subject: [PATCH] [editor] Add bot version to frontend Signed-off-by: Knut Ahlers --- configEditor.go | 2 ++ src/app.vue | 15 +++++++++++++++ 2 files changed, 17 insertions(+) diff --git a/configEditor.go b/configEditor.go index a1853cf..92355b7 100644 --- a/configEditor.go +++ b/configEditor.go @@ -59,11 +59,13 @@ func registerEditorFrontend() { KnownEvents []*string TemplateFunctions []string TwitchClientID string + Version string }{ IRCBadges: twitch.KnownBadges, KnownEvents: knownEvents, TemplateFunctions: tplFuncs.GetFuncNames(), TwitchClientID: cfg.TwitchClient, + Version: version, }); err != nil { http.Error(w, err.Error(), http.StatusInternalServerError) } diff --git a/src/app.vue b/src/app.vue index cced348..9871616 100644 --- a/src/app.vue +++ b/src/app.vue @@ -112,6 +112,21 @@ Disconnected from Bot + + + + + Version: {{ $root.vars.Version }} + +