From 3baf3d2545ba6ece6b74a64c0def59bd0774cf54 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Wed, 10 Jun 2026 16:34:12 +0000
Subject: [PATCH] =Laid the groundwork for an improved DashboardManager.php setup. Have to put it aside so I can get the dang Northeh done though.
---
assets/js/concise/Queue.js | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/assets/js/concise/Queue.js b/assets/js/concise/Queue.js
index 77e5aeb..0290aa9 100644
--- a/assets/js/concise/Queue.js
+++ b/assets/js/concise/Queue.js
@@ -17,6 +17,7 @@
this.items = new Map();
this.subscribers = new Set();
this.loadFromStorage = false;
+ this.failedFetches = 0;
this.api = jvbSettings.api;
this.endpoint = 'queue';
@@ -30,6 +31,7 @@
this.initElements();
this.initListeners();
this.initStore();
+
if (this.canUpdateUI && this.ui.panel) {
this.popup = window.jvbPopup.registerPopup({
popup: this.ui.panel,
@@ -615,12 +617,12 @@
body: requestBody
}
);
- console.log('Sending request with data: ', req);
+ // console.log('Sending request with data: ', req);
const result = await response.json();
if (skip) {
operation.data = {};
}
- console.log('Result: ', result);
+ // console.log('Result: ', result);
if (response.ok && result.success) {
this.notify('sent-to-server', req);
if (result.id && operation.id !== result.id) {
@@ -801,6 +803,8 @@
return;
}
} catch (error) {
+ this.stopPolling();
+ this.updatePanel('synced');
console.error('Polling error:', error);
}
--
Gitblit v1.10.0