aboutsummaryrefslogtreecommitdiffstats
path: root/static/modules/sbbuilder.js
diff options
context:
space:
mode:
Diffstat (limited to 'static/modules/sbbuilder.js')
-rw-r--r--static/modules/sbbuilder.js10
1 files changed, 8 insertions, 2 deletions
diff --git a/static/modules/sbbuilder.js b/static/modules/sbbuilder.js
index 9e49d90..6285dd5 100644
--- a/static/modules/sbbuilder.js
+++ b/static/modules/sbbuilder.js
@@ -14,6 +14,8 @@
// with this program; if not, write to the Free Software Foundation, Inc.,
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+import { offline } from "../offline.js";
+
const gib = (b) => (b == null ? "?" : (b / 1073741824).toFixed(1));
const pct = (n) => (n == null ? "?" : `${Math.round(n)}%`);
const ago = (ts) => {
@@ -52,11 +54,15 @@ export default {
update(state, el) {
const box = el.querySelector(".sbb");
- box.textContent = "";
if (state.offline) {
- box.textContent = "build VM unreachable";
+ offline(box, {
+ icon: "/icons/virt-manager.svg",
+ title: "Build VM is off",
+ detail: "Start the VM and its jobs and package counts appear here.",
+ });
return;
}
+ box.textContent = "";
const s = state.stats ?? {};
const p = s.packages ?? {};
const sr = s.slackrepo ?? {};