From 0a51b0d255a4fd89953b27acac9a80c3de0956b1 Mon Sep 17 00:00:00 2001 From: Stefan Dej Date: Mon, 11 May 2020 08:40:00 +0200 Subject: [PATCH] bugfix: time format in status panel, update README.md for V0.0.12 --- README.md | 4 ++-- src/App.vue | 2 +- src/components/panels/StatusPanel.vue | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index d07d18234..252454d17 100644 --- a/README.md +++ b/README.md @@ -173,7 +173,7 @@ Now we can install Mainsail. Now you can download the current mainsail static data ```bash cd ~/mainsail -wget -q -O mainsail.zip https://github.com/meteyou/mainsail/releases/download/v0.0.11/mainsail-alpha-0.0.11.zip && unzip mainsail.zip && rm mainsail.zip +wget -q -O mainsail.zip https://github.com/meteyou/mainsail/releases/download/v0.0.12/mainsail-alpha-0.0.12.zip && unzip mainsail.zip && rm mainsail.zip ``` Now it should be possible to open the interface: `http:///`. @@ -243,6 +243,6 @@ git fetch arksine && git checkout arksine/work-web_server-20200131 ~/klipper/scripts/install-moonraker.sh #optional: only for the first installation of moonraker rm -R ~/mainsail/* cd ~/mainsail -wget -q -O mainsail.zip https://github.com/meteyou/mainsail/releases/download/v0.0.11/mainsail-alpha-0.0.11.zip && unzip mainsail.zip && rm mainsail.zip +wget -q -O mainsail.zip https://github.com/meteyou/mainsail/releases/download/v0.0.12/mainsail-alpha-0.0.12.zip && unzip mainsail.zip && rm mainsail.zip ``` and update your macros & nginx config. \ No newline at end of file diff --git a/src/App.vue b/src/App.vue index 7a70812a0..97147d368 100644 --- a/src/App.vue +++ b/src/App.vue @@ -69,7 +69,7 @@ - Connecting to Klipper + Connecting... diff --git a/src/components/panels/StatusPanel.vue b/src/components/panels/StatusPanel.vue index 91d56ff3e..a091f5eb4 100644 --- a/src/components/panels/StatusPanel.vue +++ b/src/components/panels/StatusPanel.vue @@ -155,8 +155,8 @@ formatTime(seconds) { let h = Math.floor(seconds / 3600); seconds %= 3600; - let m = Math.floor(seconds / 60); - let s = seconds % 60; + let m = ("0" + Math.floor(seconds / 60)).slice(-2); + let s = ("0" + (seconds % 60).toFixed(0)).slice(-2); return h+':'+m+':'+s; },