From 2c8063a1697ce4c737a2296b8d6385c9cf761f07 Mon Sep 17 00:00:00 2001
From: "jakob.stendahl" <jakob.stendahl@infomedia.dk>
Date: Sun, 18 Dec 2022 00:05:50 +0100
Subject: Make the updater work properly

---
 src_frontend/Components/Settings/Version.svelte | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

(limited to 'src_frontend/Components/Settings/Version.svelte')

diff --git a/src_frontend/Components/Settings/Version.svelte b/src_frontend/Components/Settings/Version.svelte
index 35c8f96..63f621f 100644
--- a/src_frontend/Components/Settings/Version.svelte
+++ b/src_frontend/Components/Settings/Version.svelte
@@ -5,10 +5,8 @@
     import { authorizedSocket } from "../../stores/socketStore.js";
 
     let version = "-";
-    let branch = "-";
     let newVer = "-";
     
-    authorizedSocket.on("version:branch", _branch => branch = _branch);
     authorizedSocket.on("version:current_number", _version => version = _version);
     authorizedSocket.on("version:newest_number", _version => newVer = _version);
 
@@ -27,7 +25,6 @@
     }
     
     onMount(async() => {
-        authorizedSocket.emit("version:branch");
         authorizedSocket.emit("version:current_number");
         authorizedSocket.emit("version:newest_number");
     });
@@ -55,7 +52,6 @@
 <div>
     <h1>Version</h1>
     <p><span class="label">Current version</span> <PrettyVar varText={version}/></p>
-    <p><span class="label">Current branch</span> <PrettyVar bind:varText={branch}/></p>
     {#if newVer != version}
     <p><span class="update-available">Version <PrettyVar bind:varText={newVer} /> available.</span></p>
     <FloatingButton on:click={doUpdate} bind:loadingPromise={updateVersionPromise} fullWidth=true>Update luxcena-neo</FloatingButton>
@@ -63,4 +59,4 @@
     <div class="button-row">
         <FloatingButton on:click={checkForUpdate} bind:loadingPromise={checkVersionPromise} fullWidth=true>Check for updates</FloatingButton>
     </div>
-</div>
\ No newline at end of file
+</div>
-- 
cgit v1.2.3

