add server version/commit in logs and UI

This commit is contained in:
Mikaël Cluseau
2023-11-04 13:53:00 +01:00
parent 41897c00b4
commit f7b708ce4b
6 changed files with 18 additions and 6 deletions

View File

@ -16,6 +16,7 @@ createApp({
session: {},
error: null,
publicState: null,
serverVersion: null,
uiHash: null,
watchingState: false,
state: null,
@ -41,6 +42,7 @@ createApp({
deep: true,
handler(v) {
if (v) {
this.serverVersion = v.ServerVersion
if (this.uiHash && v.UIHash != this.uiHash) {
console.log("reloading")
location.reload()